Tutorial

88 vFoglight
Web Component Tutorial
8
Click Save to save your work so far, and then click Edit to continue modifying
the dashboard.
Set a Context
Define a Context to tell the component that it may accept an object of type Host for its
operation and supply the component with an initial value for the Host object. You will
configure this dashboard to permit the choice of a different host and then update itself.
To set the context:
1
Select the Context tab.
2
Click the Add Context Input button ( ) in the Inputs section and click on the
new row to launch the Edit dialog.
Declare a context using the information in the figure:
Note that a dashboard must not have any required inputs, so choose Optional for
Usage, and you will set an initial value in the context in a following step.
3
Click Save.
This host context setting is necessary because you will use it to supply the host
name and state to the dashboard’s title. By setting a default value, you supply the
dashboard with an initial host value. Without it, the view might show errors until
a host is chosen and an update action is triggered.
To supply an initial host value:
1
Select the Context tab.
2
Click the Edit ( ) button for the key host row in the Inputs section.
3
Choose Query Selection from the drop-down.
4
Click the Query Selection Runtime Value browse button ( ) to display a list of
queries.