"Script which is used to pass multiple sub-category in chart with the same connection - 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 which is used to pass multiple sub-category in chart with the same connection (/showthread.php?tid=473) |
"Script which is used to pass multiple sub-category in chart with the same connection - ArghaPratim - 12-23-2022 var arr = changedItem.attributes.subcategory.split(","); var str = []; for (var i = 0; i < arr.length; i++) { str.push("[subcategory]=='" + arr[i] + "'") }; var filterStr = str.join("||"); sdk.applyDataSetFilter("grpbar92", [filterStr]); sdk.reloadDataset("grpbar92"); |