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
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