Escolar Documentos
Profissional Documentos
Cultura Documentos
WEB DYNPRO
Web Dynpro is the SAP NetWeaver programming
model for user interfaces (UIs).
Web Dynpro for Visual Composer is somewhat different from the other two variants in
that you do not have access to modify any coding. Visual Composer is used as the
graphical programming tool to create a Web Dynpro implementation of your business
application. However at runtime, the application definition is translated from the design
time configuration into an executable Web Dynpro application, thus the coding is not
accessible for design time modification.
Java programming
M-V-C Structure
BASIC DESIGN
In creating this simple application, you will be introduced to the
following fundamental design concepts in Web Dynpro:
Component based development .
Context Mapping – How to share data between different controllers within
one component .
Defining a Web Dynpro user interface .
Data Binding – How to visualize information held within a controller .
How to navigate from one Web Dynpro screen to another .
How to invoke the functionality of a Web Dynpro component from a
browser
-> The public interface of any contained units of software that should be
visible outside the scope of the DC (known as “Public Parts”)
The dependencies this DC may have on the public parts of other DCs.
1) Creating a DC of type Web Dynpro
Before we create our Web Dynpro application, we must first create a DC of type
Web Dynpro.
Web Dynpro component has two interfaces:
-> visual interfaces .
-> programmatic interfaces.
Having opened the NetWeaver Developer Studio, select the Web Dynpro
perspective by following the menu path
Window -> Open Perspective -> Other -> Web Dynpro.
Now select File -> New -> Web Dynpro Development Component.
The
next screen you will see asks for the name of the software component to which your
development component will belong. Below “local developments” is the name of a dummy
development track, within which there is a dummy software component called “my
components”. Press next to continue. On the following screen, you need to enter the
information about the new DC.
This processing is performed by the component controller and once complete, the
data is placed into an area of memory known as the “context”.
Each controller within a Web Dynpro component has its own memory area or
“context”, and view controllers can access the information held in the component
controller’s context by means of a techniques called “context mapping”.
With respect to a model, the component controller acts as a data consumer. However,
with respect to a view controller, the component controller acts as a data generator.
Interface Controller
We can define methods in the interface controller that are then implemented by the
component controller.
In addition to being able to define methods in the Interface Controller, you can also
define events and data structures (the correct Web Dynpro term for these data
structures is Context Nodes).
Custom Controllers
These controllers are created at design time and can be used to encapsulate any
functionality that needs to be shared by multiple controllers within the
component.
At runtime, custom controllers are always singletons with respect to the component
controller
View Controllers
The view controller is the only controller within a Web Dynpro component that can
place information directly on the screen.
A Web Dynpro component can have zero or more View Controllers.
A view controller is never responsible for generating the data it displays.
Window Controller
Window Controller handles the processing for an aggregation of views, a view controller handles the
processing for an aggregation of UI elements
Window Controller as being hierarchically superior to the view controllers.
view controllers would never be visible on the screen because they have not been embedded into the
Component’s visual interface
Window Interface Controller
a Window Controller implements the component’s visual interface defined in the Interface View
Controller.
The Interface View seen within the Interface View Controller is implemented by the Web
Dynpro Framework and exists only at runtime. The Web Dynpro developer has no direct control over
this object. This is achieved through a technique known as “Context Mapping”
The Objects within a Web Dynpro DC
3)CREATING THE COMPONENT CONTROLLER’S CONTEXT
Select a node and then select manual creation of a context node and place its
name and then click finish . after click ok .
RIGHT CLICK ON THE CANDIDATEINFO CONTEXT NODE AND SELECT
NEW -> ATTRIBUTE.
CREATING ATTRIBUTES FOR THE CANDIDATEINFO CONTEXT NODE.
THE FINISHED CONTEXT STRUCTURE
All you need to do to cause navigation to happen is call this method, and the Web
Dynpro Framework handles the rest for you.
Presented by
K.S.L.Neelima