How to get the selected values in the multi combo box custom widget and apply the filter to the other widgets?
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)
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.
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.
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.
By following these steps, you can easily apply filters to your widgets based on the selections made in a combo box.