Entering content frame

Component documentation Dynamic Programming in Web Dynpro

The Task

This tutorial will present to you the first steps for dynamic programming in Web Dynpro.

The aim of this tutorial is to dynamically create appropriate user interface elements from a given description and to integrate them into an existing incomplete Web Dynpro application. The description of the user interface elements is stored in the Java class SomeBackEnd.java.

This graphic is explained in the accompanying text

In the tutorial, different user input fields such as text and date input fields, checkboxes, selection lists, and radio buttons are taken into consideration.

Input fields will have to be mapped to context attributes. Since the number and the respective type of context attributes is not known during dynamic creation of user interface elements, these are created dynamically during runtime. The type information required for this (including metadata such as field labels, quick infos, and value sets) is usually provided by the backend through a dictionary (in this case, by the class SomeBackEnd.java). 

Furthermore, the class SomeBackEnd.java contains information on pushbuttons that are to be dynamically created. Dynamically created actions are assigned to these pushbuttons.

Objectives

By the end of this tutorial, you will be able to:

!

Dynamically create context attributes and context nodes

!

Dynamically create user interface elements and map them to context elements

!

Dynamically create actions and bind them to the onAction event of a pushbutton

Prerequisites

Systems, Installed Applications, and Authorizations

·        The SAP NetWeaver Developer Studio is installed on your PC.

·        You have access to the SAP J2EE Engine.

Knowledge

·        Basic knowledge of the Java programming language

·        Knowledge of programming of Web Dynpro applications

Next step:

Importing a Project Template

 

Leaving content frame