
You can vary - at runtime - which link that was set up at design time you wish to follow. You can do this through navigation control with the help of event handlers from window plugs . In this manner you can control at runtime - within navigation in a window of an embedded component - which view of this embedded window is to be displayed first.
Including the Window Plugs into Navigation
An additional step in navigation is necessary to include a parameter for navigation control. Instead of linking the outbound plug of a view in the window editor with the inbound plug of a subsequent view, the outbound plug of the view is linked with an inbound plug of the embedded window.
In addition, an outbound plug is created for the window for each required navigation option. The corresponding navigation link is set up in the window editor. In this way, all possible navigations are planned ahead of time.
So that navigation can be controlled at runtime, the outbound plug of the starting view must pass a parameter to the inbound plug of the window.
In the event handler method of the inbound plug of the window, the system controls which outbound plug of the window is called at runtime with the help of a suitable implementation - depending on the value of the passed parameter. This means that the navigation path to be executed is controlled.