To show any calculated field from tooltip - 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: To show any calculated field from tooltip (/showthread.php?tid=625) |
To show any calculated field from tooltip - Sruthi P - 12-23-2022 How to show calculated field from tooltip? Add this in dashboard script: sdk.calculation = sdk.calculation || {}; sdk.setContext( 'main33', 0 ); sdk.calculation.getfiltered= function(f1, f2){ if(f1 ==0){ return sdk.getContext( 'main33' ); }else{ sdk.setContext( 'main33', Math.abs(f1-f2) ); return (Math.abs(f1-f2)); } }; Add this in calculation script area: sdk.calculation.getfiltered(column_name ); |