Is there possibility we can hide the "Data visualization" Based on the filter condition we apply?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 10:00 PM
Hi folks,
I have a requirement in UI builder - "Is there any possibility we can hide the "Data visualization component" Based on the filter condition we apply?"
- Labels:
-
UI Builder : Next Experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 10:44 AM
You can hide a data visualization component by passing value in the Hide component section of any component. Based on true or false value it hides or unhides. You can set that true or false value with
1) static value set i.e directly passing true or false
2) Dynamically setting the value using state parameter, context parameter or data source values.
3) Using scripts.
As per your question, you have not mentioned where the filter condition will be applied. so my question would be where's the filter condition being set. Once you apply the filter, set a state parameter to true or false depending on your requirement and use that state parameter in Hide component section of Data viz component and you should be able to hide it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 02:08 AM
Hi @Dibyaratnam Thanks for your reply
so I have a filter component in the form and also Data viz component if i click some of the value, not all data viz component have data if no data means it needs to hide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 06:56 AM
Can you share any screenshot of your page and where you are clicking and currently how does it behave and what's your requirement.
Are you getting no records to display message on data viz?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 04:07 AM - edited 03-27-2024 04:31 AM
Hello @Dibyaratnam , I need your help.
I have a requirement in UI Builder - I need to hide the data visualization component if there is no data in the component, Kindly help me with the scripting or if you have any sample scripts please let me know.