SAP Web Dynpro - Component


Advertisements

Web Dynpro component is an entity used to create a Dynpro application. These are reusable entities, which are combined together to create application blocks.

Each Web Dynpro component contains a window, view, and controller pages. You can also embed a Web Dynpro component to other Web Dynrpo component in an application and communication takes place using the component interface.

Lifetime of a component starts when you call it first at runtime and ends with Web Dynpro application.

View

Each Web Dynpro application contains at least one view and it is used to define the layout of a user interface. Each view consists of multiple user elements and a controller and context.

The controller is used to process the user request and processing of data. Context contains data to which the elements of view are bound.

In Main View

Each view also contains an inbound and outbound plug so you can connect views to each other. Plugs can be linked to each other using navigation links.

Inbound Outbound Plug

Navigation Links and Plug In

You can navigate between different views using inbound and outbound plugs. The inbound and outbound plugs are part of the view controller. The inbound plug defines the starting point of view while the outbound plug tells the subsequent view to be called.

Navigation Link

View Set

A view set is defined as a predefined section where you can embed different views in a Web Dynpro application. View set allows you to display more than one view in a screen.

Following are a few advantages of view set in designing an application −

  • You can reuse views in a Web Dynpro window.
  • You can easily make changes to the layout at a later stage.
  • It is a more structured approach to use more than one view.

Web Dynpro Window

In Web Dynpro, the window is for multiple views or view sets. A view can only be displayed when it is embedded in a view and a window always contain one or more views connected by navigation links.

Each window contains an inbound and an outbound plug and they can be included in a navigation chain. Inbound plugs within a window lead from the outbound plug of a view to the embedding window. Just like all other inbound plugs, they represent an event and thus call the event handler assigned to them.

Window Controller

Window Controller Event Handler

Controller

Controllers are used to define how a Dynpro application responds to user interactions. Each view has one controller which is responsible to perform actions as per the user’s interaction.

Interface Controller
Advertisements