Forums
Create dataset and mapping it to a component - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: Create dataset and mapping it to a component (/showthread.php?tid=540)



Create dataset and mapping it to a component - Athi - 12-23-2022

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