Articles in this section
Category / Section

How to Pass Filtered Values Through a Button Custom Widget with Linking?

Published:

Passing Filtered Values Through a Button Widget with Linking

Overview

This article provides a step-by-step guide on how to pass filtered values from a label parameter through a button widget using linking. This functionality is useful for creating interactive dashboards where user selections can dynamically update other components or navigate to different views with context-specific information.

Prerequisites

  • A custom button widget must be downloaded and published.
  • Familiarity with configuring widgets and parameters within a dashboard.

Configuration Steps

  1. Widget Setup: Begin by setting up your dashboard with the necessary widgets. For demonstration purposes, we will use a combination of a combo box, a text widget, and a button widget.

  2. Combo Box Configuration: Configure the combo box widget to filter data based on a specific column. In this example, we will use the “ShipCountry” column.

  3. Label Parameter Creation: Create a label parameter to capture the filtered value from the combo box. This can be done using the following syntax:

    {{:ShipCountry}}
    
  4. Button Widget Configuration: In the button widget settings, include the “ShipCountry” in the hidden column section to ensure it captures the selected value.

  5. Linking with URL Parameter: Set up linking in the button widget by incorporating the label parameter into the URL. The URL should be structured to pass the selected value as a parameter, as shown below:

    http://localhost:63642/bi/site/site1/dashboards/b0b57ccf-5704-442e-938b-1f654f7a3089/test/button%20widget?showmydashboards=1&ShipCountry=IN({{:ShipCountry}})
    

Label_parameter_creation.png

  1. User Interaction: When a user changes the selection in the combo box, the text widget will display the current selection. Upon clicking the button, the selected value will be passed to the URL parameter, effectively filtering the data or navigating as configured.

Label_parameter_creation1.png

Conclusion

By following these steps, you can successfully configure a button widget to pass filtered values through a URL parameter, enhancing the interactivity and user experience of your dashboards.

References

Please replace the # in the references with the actual URLs where users can find more information about creating custom widgets, dashboard configuration, and URL parameters.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SR
Written by Sethu Raman Athimoolam
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied