Category / Section
How to dynamically change the image in dashboard?
Published:
This article explains how to dynamically change the image of a widget based on applied filters in BoldBI. This can be achieved by binding a field containing a parameterized URL as a value in image widget.
Scenario
Consider you have “Country Image” field in your data source which contains the parameterized URL of the image
Steps to Use Parameterized URL
- Drag and drop the image widget. Then bind the field in “Assign Data” section.
- Set the Image Source as Parameterized URL from the Properties tab as shown like below.
- Dray and drop combo box widget and then bind the field.
- Bind the URL in the value section and the text to be displayed in the display section.The column bind in the display column section will be shown in the drop down.
- Preview/View the dashboard and apply filter in combo box. Refer the gif image below
By following these steps, the image of the widget will change dynamically based on the applied filters.
Also you can use the same configuration can be combined with URL parameters or User based filters to further restrict the images seen by the user. Refer the below documentations