The Web Dynpro tools provide various functions for working with the model classes after a Web Dynpro model import. Possible operations depend on the type of the model to be processed. There is a set of operations available for the corresponding model type. You can make changes to the properties of a Web Dynpro model as follows:
Editing interfaces, methods, relations, and properties of a model class.
Subsequent definition of additional model classes that do not exist in the import source, interfaces, methods, relations, and properties that are required for the Web Dynpro application
Creating and deleting model classes
You have imported a Web Dynpro model for the Web Dynpro project.
To make changes to the model classes, proceed as follows:
1. The classes are listed in the Web Dynpro Explorer view underneath the node hierarchy Models → <myModel> → Model Classes. Place the cursor on the model class you wish to change and choose the context menu entry Edit.
2. Four tab pages are displayed in the right-hand screen area. Activate one of these by clicking the tab page name. The following table displays the functions for each tab page:
Model Class |
Tab Functions |
Overview
|
· Select superclass (optional) · View interfaces of model class (optional) · Create interfaces (optional) |
Properties |
· Display properties of model class while considering superclass · Edit non-inherited properties · Copy properties within the class with change option for type and read property · Create additional properties not contained in the import source |
Methods
|
· Display methods of model class while considering superclass · Edit non-inherited methods · Copy methods within the class with change option for return property and type · Parameter definition with change option for type · Create additional methods not contained in the import source |
Relations |
· Display relations of class while considering superclass · Edit non-inherited relations · Change relation properties (cardinality, navigation options, relation target) · Create additional relations |
3. In the Web Dynpro Explorer view, you can call other functions through the context menu for the model class.
A wizard is available for renaming a model class and simultaneous allocation to a new package.
To delete a class, choose the context menu entry Delete for the model class to be deleted (underneath the node Model Classes).
4. Store all the changes by clicking Save All Metadata.
To create a new model class for the model, select the node Model Classes in the Web Dynpro Explorer view and choose the context menu entry Create Model Class.