PDA

View Full Version : "dot" problem in JSON with grids



isildur
11 Sep 2011, 10:44 PM
Hi,

I'm working on a project that automatically get the column names and its data via JSON and show them on grids. Everything is working successfully until there is a "dot" in column name. When a column name with dot is appeared, the code stops working.

For example : The following is working
["FID", "Shape", "RP_ACCT_ID", "PID", "SID"]

But this is not working due to dots in it:
["parcels.OBJECTID", "parcels.Shape", "parcels.RP_ACCT_ID", "parcels.PID", "parcels.SID", "parcels.APN"]

Is a way to solve this problem?

A.

skirtle
12 Sep 2011, 2:35 AM
I suspect your problem is with your fields rather than your columns. Try:

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.reader.Json-cfg-useSimpleAccessors

isildur
12 Sep 2011, 9:19 PM
Thanks a lot.

A.