Thursday, September 29, 2016

View: Inbound and Outbound Plugs

Each view has a number of inbound and outbound plugs. These plugs are required so it is possible to navigate between two views.
Inbound Plugs
On the Inbound Plugs tab page you can create a number of inbound plugs for the view that is currently being edited. Enter a new name for this plug and add a description of it. Unlike outbound plugs, inbound plugs can be equipped with an event handler. This event handler of an inbound plug is always called if the view is controlled using this plug.
Outbound Plugs
Parallel to inbound plugs, a view can have outbound plugs. From these plugs it is possible to navigate from a view to the next one. You can specify importing parameters for an outbound plug. These parameters are passed to the outbound plug when method wd_ThisFire_Plugname_Plg is called.

Plugs and Navigation Links
Navigation between different views is enabled by plugs. While inbound plugs define the possible starting points of a view, the outbound plugs of a view can be used to call a subsequent view. Plugs are part of the controller of a view. They are always assigned to exactly one view.
Several views are generally embedded in a Web Dynpro window. Therefore, it is necessary to qualify one view that is displayed first of all when a window is called. This view is assigned the Default property. The subsequent navigation structure is then created using this view.
The entering of a view using an inbound plug always causes an event handler method to be called. This is why an event handler method (whose use is optional) is automatically generated for every inbound plug. In this case, the inbound plug itself represents the event to be handled.
To navigate from one view to another, each outbound plug from the first view must be linked with an inbound plug of the second view with the help of a navigation link in Window.
  • Exactly one navigation link can originate from one outbound plug, although this can lead to a series of target views.
  • In contrast, an inbound plug can be controlled by several outbound plugs.
This graphic is explained in the accompanying text.

No comments:

Post a Comment

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...