Creating a web widget
You can embed an external URL within a widget and save the widget independently as a web widget. When you preview or publish the widget, it displays the website or web application within the widget itself and not in a separate browser window. You cannot add widget-level filters or save this widget as a template. For the dashboard-level filters to work, you need to specify the filter names in the URL. You must enter the filter name within curly brackets in the URL at an appropriate location, based on the URL syntax.
Before you begin
- If you want to set a background image for the web widget, then ensure that the image is already available on your computer.
- Ensure that the website does not have any IFrame restrictions and can be embedded within
IBM® Cloud
Application Business Insights and other
websites. To view the IFrame restrictions, you must check the response header of the external URL.
If the Network tab displays any of the following options, then the website
cannot be
embedded:
X-Frame-Options: deny X-Frame-Options: sameorigin X-Frame-Options: allow-from https://example.com/
- Ensure that the
ALLOW_IFRAME_INSIDE_PRD
parameter is set totrue
in the bootstrap.properties file. The file is placed at the following location:$install_dir/wlp/usr/servers/icabi
Where, install_dir is the directory where you installed Cloud Application Business Insights.
If you do not set the
ALLOW_IFRAME_INSIDE_PRD
parameter totrue
, then the external website or web application is not displayed, and a browser-specific error message might be displayed.For more information, see Configuring IFrames to embed external applications in Cloud Application Business Insights.
- You can add URLs that start with
http
orhttps
only.For example,
http://www.example.com
- If you want to add one or more dashboard-level filters to the widget, then you must specify the filter names in the URL itself. You must be aware of the valid filter parameters that can be used to filter the website.
About this task
After you log in to the Dashboard Designer, you can create web widgets by using any of the following options on the landing page:
- Click CREATE COMPONENTS, then in the Create Components page, click WIDGETS.
- Click the Expand
icon to open the navigation pane of Dashboard Designer, and click .
Procedure
To embed a website or web application in a widget, complete the following steps:
Results
- Custom widget name
- Custom widget category
- Name of the Engine instance to which the widget is published.
- Date and time when the custom widget was first created, and the username of the user who first created the custom widget.
- Date and time when the custom widget was last modified, and the username of the user who last modified the widget. Only the latest record is displayed.
What to do next
- Publish the web widget.
For more information, see Publishing custom widgets.
- Use the web widget in a dashboard and set controller-listener or drill-down relation.
For more information, see Creating a dashboard.