Forums
Set a value from web-socket to label 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: Set a value from web-socket to label component (/showthread.php?tid=474)



Set a value from web-socket to label component - ArghaPratim - 12-23-2022

var data = changedItem.attributes.data;
if(data && data.length >0 && data[0].data && data[0].data.tab1_labels){
var dataP = data[0].data.tab1_labels[0].downloaddata.;
sdk.setValue( 'label33', dataP ' Mb' );
}