Results 1 to 3 of 3

Thread: Char store not working when my store field name has a combination of dot and space

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    22
    Answers
    1
    Vote Rating
    0
      0  

    Default Char store not working when my store field name has a combination of dot and space

    I have faced a strange issue when creating bar chart.

    when i set the store for my chart eg:

    var dataStore = new Ext.data.JsonStore({
    fields: ["field1 .", "field2"],
    data: [
    {"field1 ." : "data1", "field2" : "data2"}
    ]
    });

    if the field name contains both a dot and space char then the store is not working. If its only on of these char it works fine.
    So does any one knows a work around for this.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1390
      0  

    Default

    The dot can easily make it seem like it's an object and property. Workaround is to only use alpha/numeric chars in the field names, may need to use the mapping config on the field.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member joshua.ball@osi.com's Avatar
    Join Date
    Nov 2012
    Location
    Sacramento, CA
    Posts
    43
    Answers
    1
    Vote Rating
    1
      0  

    Default

    I'm not sure if there is something similar to this in the Touch framework, but in ExtJS you can set the value of useSimpleAccessors in the reader to true. This will allow the JSON key to be interpreted as a string rather than an object reference.

    http://docs.sencha.com/extjs/4.1.3/#...impleAccessors

    Hopefully there is a setting like that in the reader for the Touch framework!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •