Search results

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

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

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