Hi , as i am loading and parsing the JSON string into data for TWebClientDataset.row , sometimes in my chrome dev Tool console , i noticed some error caused by
Data = "[ { "id":1 , "name": "something" , "company_add1": false } ,
{ "id":1 , "name": "something" , "company_add1": "some streets" , "tel":"+6012345678" }
]";
The Data will need to parse into TJSArray(TJSJSON.parseObject(_data)) before it can be loaded ,
when i try to convert it into the FIRST TWebClientDataset ,
i think it accept all values and open the dataset automatically without issue , but when i try to copy the Data/Records to ANOTHER TWebClientDataset,
i saw some error like ... AValue = False , not known type (something like this) ,
my questions are as follow ,
1. i am thinking to parse the above data in my ASM Block and considering remove all the value
which has false as it's value using JS function
before loading it to "ROW" property of dataset , is that the right way to do so ?
2. from the above data , i purposely put the second set / row in the array , where it has additional
"tel" , key / field , if i DO NOT use the TField editor to create the related fields,and allowing TMS
Webcore to auto create the field when it loads the ROW from a parseObject , ie id, name ,
address_add1 , tel ,
SO... will the JSON object when get loaded into the TDataset will AUTO create the
SO... will the JSON object when get loaded into the TDataset will AUTO create the
field , especially the "tel" field correctly because the field only appear at the second row ?
please help to clarify , thanks.
please help to clarify , thanks.