Ui Builder Data Visualization Data Sources Dynamic Binding with filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 05:11 AM
How can i use my state variable inside filter condition of data visualization component.
I just want to make one column dynamic where region is @STate.region. But i dont know how to access state inside filter of data visualization widget.
Is there any way to get some specific data on condition based on state variable.............
Regards,
Manav Takoliya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2025 01:21 PM
Hi Manav, were you able to solve this issue? I'm facing the same challenge right now.
Thank you and kind regards,
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2025 12:07 AM - edited 10-01-2025 12:09 AM
Looks like you might not be able to use report sources to tie state to the filter but you can use the data viz data resources as per the docs: Use a local data instance with a data visualization
It is also mentioned in the uib component docs
I tested this with the single score viz:
- Add the correct data resource for your component. Take note of the description for instructions on params
- In the data source one can bind a state param to the filter
- Select define data manually in the data sources accordion and bind @...output.result from the data resource to the data
This way the filter can be tied to state. For testing I added two handlers to a button, one changes my state param used in the filter and another refreshes the data resource.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2025 02:59 AM
Hi lauri457, that did do the trick! Thanks
