-
31 Jul 2012 6:28 AM #1
Model Names do not allow spaces
Model Names do not allow spaces
Hi,
The dataIndex names in my view have spaces in them, for example " Manager Class". However, when adding name to the Model it does not allow a name with spaces in it. Thus, after I deploy, I have to manually change the model names to match the dataIndex in the view and then everything works fine.
Is this a bug or is there a work-around for this probem.
Thanks Much for any help with this.
-
31 Jul 2012 7:42 AM #2
Very rare use case for naming fields (dataIndex).
I guess your server code is in MS technology 'cause MS is the only one I saw encourages developers to use spaces in database field names.
I don't think is a bug but a feature since 99.9% of the developers I know don't use spaces in identifiers. Just change your server code to send field names without spaces: "ManagerClass" or "Manager_Class" instead of "Manager Class".
Regards.UI: Sencha Architect 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!


Reply With Quote