Pass parameter from one dashboard to another via openDoc url - 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 (https://bdn.bdb.ai/forumdisplay.php?fid=29) +---- Thread: Pass parameter from one dashboard to another via openDoc url (/showthread.php?tid=404) |
Pass parameter from one dashboard to another via openDoc url - ArghaPratim - 12-23-2022 function getParam(name,url) { if(!url)url = location.href; name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec(url); if( results == null ) return ""; else return results[1]; } var Years = getParam("Year",referrer); alert(Years); |