Articles in this section
Category / Section

How to get the selected values in the multi combo box custom widget and apply the filter to the other widgets?

Published:

Download the ComboBox custom widget. Refer to the UG documentation link to know how to publish the custom widget and debug the same to get the selected values in combobox.

In Bold BI, you can easily get the selected values from a combo box and apply these as filters to other widgets. This can be achieved by binding the event to the combo box APIs and using interaction code to pass the selected data to other widgets. Here’s a step-by-step guide on how to do this

Step 1: Bind the Event to the Combo Box APIs

First, you need to bind the event to the combo box APIs. You can find the change event in the combo box in the help link. The event should look something like this:

Event : change: $.proxy(this.onSelectData, this)

image.png

Step 2: Select the Value from the Combo Box

Next, open the combo box popup and select the value you want to use as a filter.

image.png

Step 3: Trigger the Change Event

When you change the values available in the combo box, the change event gets triggered. The corresponding method is also triggered, and the selected values are returned in the args.value.

image.png

Step 4: Pass the Selected Data to Other Widgets

After the event is triggered, you can pass the selected data to other widgets with the use of interaction code. Once you’ve chosen the filter information, use bbicustom.dashboard.filterData(filterinfo) to filter the other widgets on the dashboard.
image.png
By following these steps, you can easily apply filters to your widgets based on the selections made in a combo box.

MultiComboBox.bicw
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RM
Written by Reethika Moovendhan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied