Articles in this section
Category / Section

How to pass dashboard parameter from client-end in Embedded BI

Published:

How to pass the filter parameters in Embedded BI

You can pass the javascript based dashboard parameters from the client-side itself.

If you want to pass the dashboard parameters when loading the dashboard, you can use the filterParameters.

Here, your dashboard parameter is named City. You have to pass the value as shown below inside the renderDashboard function,

parameter code

Please find the filterParameters output dashboard below.

parameter-dashboard1.png

This could be changed depending on the mode (Literal/List) that you configured in the dashboard parameter.

How to update the filter parameters in Embedded BI

You can also use the following method to apply or update filter parameter, after the dashboard has been rendered.

Make sure you provide the correct casing for the dashboard parameter, as it is case-sensitive.

Example

var instance = BoldBI.getInstance("dashboard"); //dashboard -> embed container id
instance.updateFilters("City=SOCORRO");   

Please locate the dashboard displaying the output of the updated filter parameters.

parameter-dashboard3.png

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