Forums
Script to add '||' to filter value - 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: Script to add '||' to filter value (/showthread.php?tid=620)



Script to add '||' to filter value - Sruthi P - 12-23-2022

How to add  '||' to filter value?
var a = changedItem.attributes.Value; 
var newval = a.replace(/,/g, '|'); 
sdk.updateGlobalVariable( 'label_new', {'Value': newval},false ); 
sdk.reload( [ 'ConnectionID_1' ] );