Live Chat Icon For mobile
Hugo Morris

Chat with the Bold BI Sales team now!

Live Chat Icon
DataBinding > Dynamic Connection Change
Dynamic Connection Change
This sample describes how to change the data connection of the embedded dashboard to a different one with same database schema at runtime.
How can you explore?
The Select Key listing shows keys mapped to different data connection strings of same schema. The text box shows the connection string associated with each key. The Note section mentions orders of which countries each of the data connection holds. To explore this functionality, choose a key from the list and click Apply which dynamically changes the data source of the dashboard and display the corresponding records.

Click to apply any setting changes above.

The Default connection string will show the orders from all the countries.

Code snippet that enables this functionality.

    function renderDashboard() {
        var boldbiEmbedInstance = BoldBI.create({
            dynamicConnection: {
                isEnabled: true,
                identity:"User email here"