Configuring a web widget
You can configure a web widget and subsequently customize its settings in the widget-specific configuration pages.
About this task
Procedure
- Required: In the Widget
title field provide a brief descriptive name. When selecting a title, consider the purpose of the web widget, its home page, and that the title is used in the navigation pane to access the widget.
- Required: In the Home
page field provide a valid web address. This the web address of the page that displays by default when a user accesses the widget from the navigation pane.Note:
The web widget supports substitution variables in the Home page URL field. That is, you can specify a URL that includes variables that are populated when the web widget receives an event that provides values for the specified variables. Global variables are also permissible, for example, TIP_THEME. If an appropriate value is not provided for a variable, then the URL is resolved without that element of the URL. The following examples provide details on how variables are substituted:
Example 1 - Global variable substitution - value exists for the specified global variable Specified URL in the Home page URL field: /apm/index.html?theme=%%TIP_THEME%%Resolved URL with the IBM OneUI theme active: /apm/index.html?theme=OneUI Resolved URL with the dark console theme active: /apm/index.html?theme=TIPDark Example 2 - Global variable substitution - value does not exist for the specified global variable Specified URL in the Home page URL field: /apm/index.html?time=%%time%%Resolved URL: Note: In this example, the specified global variable (%time%) does not exist so the resolved URL does not include a value for the variable./apm/index.html?time= Example 3 - Event driven variable substitution, where the event includes appropriate values for the specified variables Specified URL in the Home page URL field that includes the following variables: %%start%% and %%system_name%%
/apm?start=%%start%%&system_name=%%system_name%%Resolved URL where the event data includes the following information: { name: "NodeClickedOn", payload: { start: 0, system_name: "HULK:Primary:NT" }/apm?start=0&system_name=HULK:Primary:NT Example 4 - Variable substitution that includes an event value and a global value Specified URL: Variables: %%TIP_THEME%% (which is an appropriate global variable) and %%start%%
/apm?theme=%%TIP_THEME%%&start=%%start%%Resolved URL where the event data includes the following information, assuming that IBM One UI theme is active: { name: "NodeClickedOn", payload: { start: 0}}/apm?theme=OneUI&start=0 Example 5 - Event driven variable substitution, where the received event includes a displayURLelementSpecified URL in the Home page URL field: Any URL Resolved URL: The URL specified in the displayURLelement replaces the specified the Home page URL field. If the new URL includes variables, they are resolved as per the examples provided here.
- Optional: In the Help page field, provide a relative or absolute URL to a custom help page HTML topic to replace the default help topic that ships with the web widget.
- Required: In the HTML
iFrame name field, provide a unique HTML iFrame name.
The entry in this field serves to uniquely identify the web widget to allow its content to be dynamically updated.Attention: It is important to provide a unique iFrame name. If you do not, web widgets sharing iFrame names may not display correctly until you configure its HTML iFrame name value.
- Optional: Check the Show a browser control toolbar to provide users with a web navigation toolbar, that is, standard web navigation buttons and a web address entry field.
- Optional: To allow
users to personalize their widget settings , check the relevant check
box. By default, the following check boxes are cleared:
- Widget title
- Home page
- Help page
- Browser control bar
- Click Save to commit your changes, or Restore Default Settings to reset the form.
- Click Next to display a Summary page is displayed where you can review your settings.
- Click Finish to complete the wizard
steps. The configured widget is available to be included on console dashboards.