Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create dataset and mapping it to a component
#1
Is there a way to frame a dataset using some values and map it to a component using scripts.

userid = "XXXXXXX";
message = "XXXXXXX";
exec_start = "XXXXXXX";
exec_end = "XXXXXXX";
var data_array=[];
data_array.push({"userid": userid, "message": message, "exec_start_time": exec_start, "exec_end_time": exec_end}) ;   //framing a dataset

sdk.getWidget('datagrid1').setDataProvider(data_array);  // mapping it to a datagrid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)