Now I’m interacting with a existed web service. The web service reture a JSON object like this :
I’m using GWT java overlay object to process the return JSON. So I have a java overlay object named product which is mapped to product of result property.
Now this is my question. How can I build a smartgwt datasource from the products JSArray?
BTW, I can not rebuild the server side web service code in order to generate a smartgwt standard JSON reponse.
Thanks in advance!
Call Record.convertToRecordArray(JavaScriptObject jsObj) passing the JavaScriptObject corresponding to the “result” array. This returns a Record array which you can pass to DataSource.setTestData(..).