rapidbisupport
09-11-2024Data Pipeline
That's an awesome idea. Would be great to see it OOTB.
As an FYI, after a bit of experimentation, you should be able to use this dashboard script (or convert to a plugin):
prism.on('beforemenu', (ev, args) => {
if (args.settings.name !== "widget-metadataitem" || args.settings.item.panel !== "scope") { return }
let item = args.settings.item
let menuItem = {
id: "moveFilterToDashboard",
caption: "Copy filter to Dashboard",
desc: "Copy filter to Dashboard",
execute: function () {
args.settings.scope.dashboard.filters.update(args.settings.item)
}
}
args.settings.items.push(menuItem)
})
I did make sure the script copied rather than moved, as it's easier to delete the widget filter than to recreate if you use the button in error.
This one will add a menu item, exactly as you specified.
Let me know how you go?
Thanks,
Daniel
RAPID BI
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons