Forum Post: Re: Loading Rollbase Data Into Kendoui Datasource

  • Thread starter Thread starter ymaisonn
  • Start date Start date
Status
Not open for further replies.
Y

ymaisonn

Guest
An approach would be to create a JSON object of the data you aim to pass to the widget (basically a Javascript array, serialize in a text field variable using either - JSON.stringify(myArray) or - rbv_api.stringToJson(myArray) (both methods do the same thing) You can implement this logic in a trigger The second step is to add your Widget code in a page inside a "Script component" in which you will also retrieve the field value storing the striginfied JSON, and perform the inverse operation: var datasource = JSON.parse('{!myStringifiedJSON}'); or var datasource = rbv_api.stringToJson('{!myStringifiedJSON}') You have now a datasource as a javascript array which you can pass to your widget.

Continue reading...
 
Status
Not open for further replies.
Back
Top