Chat now with support
Chat with Support

Foglight 5.9.8 - Web Component Guide

Introducing the Web Component Framework The Web Component Framework Configuring Views and Context Queries Functions Bindings Additional Components

Flow Context Mappings

You can create context keys that relate to a flow action. For example, suppose you want to select a host from a table showing a list of Hosts. To get access to the selected Host you have to define a context element for use as a Flow Context for table rows. To do this, define the Selected Row built-in context as Host. Then you can use it to change pages to a view that requires Host as an input. See Additional Context to learn about adding more context elements to the flow.

Validation of Context in the Editors

When checking the required inputs of a contained view, optional and internal inputs are provided at runtime by either the container or another contained view.

The strict typing nature of the Web Component Framework disallows arbitrary casting of one type to another, since in any responsible UI development you need to detect and prevent incorrect input. ]

On-null

Many places in the flow and context definition allow you to specify the value to use if the incoming value is an unexpected null value.

TimeRange

Some special behaviors of the context element timeRange are:

Explicitly including timeRange as a required Context on a view that becomes a page causes a time range drop-down to appear at the top right of the page. This enables the user to change the time range used in the page.
Marking a timeRange as an optional Context in a component permits it to be independently updated from the rest of the views on a page. This permits multiple views on a page to each have their own time range.

 

Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating