Start of Content Area

Procedure documentation Editing a Custom Controller  Locate the document in its SAP Library structure

There are different editors available for editing a custom controller:

Procedure

To start the edit mode for the custom controller, proceed as follows:

...

       1.      In the Web Dynpro Explorer view, choose the context menu entry This graphic is explained in the accompanying textEdit for the custom controller. The editor is then displayed in the right perspective area.

       2.      The tabs for all editors from which you can choose are displayed in the right screen area.

The Editors

Properties tab

You open the properties tab by clicking on it once. This editor shows all properties of the custom controller. To define a controller use for the custom controller, choose Add and select the relevant controllers. To delete a controller use, choose the context menu entry Remove for the controller name in the table containing the controller definitions.

Context tab

This tab allows you to create the structure for a context tree as well define the data flow. When you choose the Context tab, the Controller/Context Editor is opened and the main node Context is displayed. Choosing the context menu entry New takes you to the relevant menu subitems, where you can define value nodes, value attributes, model nodes, and model attributes for the context. Detailed Information about defining nodes and attributes is available under Context Structure. For information about the context concept, refer to Context Description.

Methods tab

Choose the Methods tab if you want to create methods and event handlers for the custom controller.

Events tab

In the Events tab, you can define events, which are then listed in a table.

Implementation tab

Choosing the Implementation tab takes you to the source code editor, which initially contains the code generated by the Web Dynpro Generator. The custom controller code plays an important part in the Web Dynpro application, since you can use the customer controller implementation to make programmatic changes. These changes can only be made within the green comment sections. For example, you can scroll to the section  //@@begin wdDoInit() ... //@@end and add the required code. If you write code outside the green sections, these manually added lines are overwritten and thus deleted by the Web Dynpro Generator.

 

End of Content Area