Embed Dashboard Widget

This guide explains how to embed a specific widget from a dashboard into a web application using an iframe URL obtained from the Bold BI UI, allowing for a concise display of the widget.

Steps to Embed the Widget

  1. Obtain the Embed URL: In the Bold BI UI, navigate to the dashboard containing the widget you want to embed. Click the context menu (typically a three-dot icon) on the widget and select Get Embed Code.
    Embed Code Option

  2. Copy the Embed URL: In the embed code dialog, ensure the URL includes isembed=true and isWidgetMode=true with the correct WidgetId. Click the copy icon to copy the URL.
    Copy Embed URL

  3. Embed the URL in Your Web Application: Modify the copied URL by replacing the server URL (e.g., http://localhost:53623), site identifier (e.g., site1), dashboard ID, dashboard name, and widget ID with your specific values. Add the URL to an iframe in your web application’s HTML. Example:

<iframe src="http://your-server-url/bi/site/your-site-id/dashboards/{dashboard-id}/{dashboard-name}?isembed=true&isWidgetMode=true&WidgetId={widget-id}" id="dashboard-frame" width="100%" height="600px" allowfullscreen frameborder="0"></iframe>
  1. Run the Web Application: Open the web application in a browser. If a login window appears, enter valid credentials, and the widget will render automatically.
    Login Window
    Embedded Widget

    Alternatively, use an Embed Signature to securely bypass the login prompt with token-based authentication.