Forum Discussion
Hi Juandres ,
Nice script!
I remember that this (viewer switching date levels on the fly) was the exact scenario that led to RAPID BI developing Sisense Add-Ons | Adaptive Switcher (rapidbi.com.au) which allows us and our customers to switch items (dims / measures / date grans) more generally against all or specifically selected widgets.
In any case - it looks like your script is failing at:
widget.changesMade('someEvent', ['metadata', 'properties_changed']);
I've tested removing this and it works on my side. It won't persist changes on the widget level though.
I've typically used this function in this way in the past, despite being different to my memory of how it was documented in the Sisense release notes:
widget.changesMade('widget', 'metadata');
Let me know how you go?
Thanks,
Daniel
RAPID BI
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons