1. #1
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    58
    Vote Rating
    0
    dgherrig is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    982
    Vote Rating
    47
    ssamayoa has a spectacular aura about ssamayoa has a spectacular aura about

      0  

    Default


    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!