
Configuring Views and Context 113
Configuring Views
Additional Context group for the current view or page. If a context has been set by some
view, it can be used in other views by declaring it in that view’s context.
Context Inputs
If the context of a page has been set, then a view can use that value by specifying the
named value of the context. For example, the Host page has set its current host into the
context using the key
Host. The Event Summary for Host view uses that context by
setting its context input (the expected context value) to use Host as its key.
Similarly, if a page has a given named value in its context, and a link takes it to another
page, then that new page can get access to that value by specifying its name as a context
input.
Context can be passed when moving from one page to another. For example, click on a
link in the Host Monitor with Host Detail view, and the Host Browser page is displayed
with data for the same host. In this case, the Host Browser page expects that:
• a list of Host data objects is required (hosts context)
• a specific Host data object may be provided (internal context input)
The host is set in the Context Inputs section.
If a view is not passed the required context input, it uses the page’s context.
Additional Context
Additional Context for a view allows you to set values on context keys for the view to
use. If it is a container view, the additional information is used by its children.
Outputs (Global Context Mappings)
Some components may generate context values based on actions that the user performs
on the component. These are listed in Global Generated Contexts in the reference page
for the component. You can use this section of the Context editor to define a key for one
or more of these context outputs if you need that information in a dependent view.
Configuration Tab
Configuration properties are those that control the overall look of the component and
where the component gets its data. For instance, in a Splitter you can control whether
the split is horizontal or vertical. In a simple component like a Label, two important
configuration properties are the label text and background color. In a complex
Kommentare zu diesen Handbüchern