Hello together,
I'm just wondering, if there exists a smart way to get the data from a JSONvalue in a DataSource object which I use for a ColumnView.
In the moment I convert the JSONvalue in a string, then in a javascript object and at last in a Record array with the following code line (where 'data' is the JSONvalue):
Then I push the Record array into the DataSource object with the setTestData methode :
Seems to work fine, but I have two questions:
First, do any restrictions exists on the setTestData methode, like length of the array ?
And second, exists there a smarter way to do this ?
Thx in advance,
Zed
I'm just wondering, if there exists a smart way to get the data from a JSONvalue in a DataSource object which I use for a ColumnView.
In the moment I convert the JSONvalue in a string, then in a javascript object and at last in a Record array with the following code line (where 'data' is the JSONvalue):
Code:
final Record[] records = Record.convertToRecordArray(JSON.decode(data.toString()));
Code:
datasource.setTestData(records);
First, do any restrictions exists on the setTestData methode, like length of the array ?
And second, exists there a smarter way to do this ?
Thx in advance,
Zed
Comment