Help on the SNC.canvas.interactiveFilters.setDefaultValue function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2019 07:47 AM
I have an example custom interactive filter example that applies the dashbpoard handler, but just before hand calls a setDefaultValue function:
SNC.canvas.interactiveFilters.setDefaultValue({ id: filter_message.id, filters: [filter_message] }, false);
dashboardHandler.publishFilter(filter_message.table, filter_message.filter);
Can anyone help me understand what the "SNC.canvas.interactiveFilters.setDefaultValue" function is doing?
Thanks
- Labels:
-
Reporting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2019 09:34 AM
I believe it saves the value as a preference. However, defaults are not supported by interactive filters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2019 12:43 AM
Thanks Adam.
Yes am aware of not being able to have a default. I was actually trying to understand if that or any other associated function would retain values, which I know are not supported as per the limitations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2019 08:05 AM
I believe it saves them to the database, but the problem is that the defaults are ignored when the dashboard loads (you have to add your own logic to force it to be used after the filter renders).