How to hide data visualization in UI builder if there is no data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 10:31 PM - edited 03-25-2024 10:32 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 10:51 PM
Can you share the Data Visualization component configuration as screenshot here. You need to set the Hide Component config property as true under Data VIz. component, then it'll hide the same.
You can make the property true or false using Data binding or script as per the required condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 03:42 AM
Hello @Dibyaratnam , Thanks for the reply!!
yes, I want to hide the component if the record count is zero and again i need to visible the component if the record count is more than zero. Only thing i don't know how to get the current record count of the current data visualization component.
I am attaching my data visualization configuration here:
I am using Data Sources Scripts to showing the records.,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 04:14 AM
From the image, that you have shared. Can you share what you have configured in Data sources, Metric and Groupby scripts. That would help in setting the hide component property for the Data viz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 04:19 AM
@Dibyaratnam : Please find the below scripts:
Data Sources: