You use this procedure to:
Generate dynamic values in a Web Dynpro application using interactive wizards for modeling value Helps in Web Dynpro applications
Provide functionality by using Object Value Selector (OVS) for entering and executing a search query and copy values of a selected object back to one or more input fields
You have:
Created a Web Dynpro development component, and the corresponding window and view are available.
For more information, see Creating Context Trees Manually
Configured an R/3 system in the Developer Studio
For more information, see Creating RFC Destinations
Imported an ARFC 2 model that has to be used in the application
For more information, see Importing Adaptive Remote Function Call (RFC 2 ) Models
Or
Imported an Adaptive Web Service Model
For more information, see Importing Adaptive Web Service Models
Or
Imported Enterprise JavaBean Model
For more information, see Importing Enterprise JavaBean (EJB) Models
Generating dynamic values using interactive wizards
Drag the DropDownByKey or InputField UI element and drop it on the view designer.
Using the secondary mouse button, choose
.Follow the instructions in the Fill Values wizard to generate dynamic values in the SVS or the EVS.
SVS is applicable for DropDownByKey UI element, and EVS is applicable for InputField UI element.
For SVS or EVS, you have the option of filling values either statically or dynamically. Filling values dynamically allows for custom code to be included with the values to be visible on load of the value help.
For more information, see Providing Long Value Lists (EVS) , Providing Short Value Lists (SVS)
The wizard generates a default piece of code, which can be modified in the Java editor based on the business logic.
Providing Search Result Value List using Object Value Selector
Applying OVS to an InputField UI element
In the view designer browser area, select an InputField UI element.
Use the secondary mouse button, and choose
.In the Fill Values wizard, select Object Value Selector (OVS).
Follow the instructions in the Fill Values wizard to create an OVS user interface.
All input field attributes used for defining search criteria must be at the same level in Model Class hierarchy. All attributes displayed in the search result table must belong to the same Model Class (OVS output node after model binding). OVS supports input or output attributes only at the same level. For more information, see Providing Search Result Value Lists (OVS) .
Editing OVS for an InputField UI element for which OVS has been applied
In the view designer browser area, select the OVS button that appears next to an InputField UI element.
Use the secondary mouse button, and choose
.Follow the instructions in the Fill Values wizard to edit the OVS user interface.
Delete OVS for an InputField UI element for which OVS has been applied
In the view designer browser area, select the OVS button that appears next to an InputField UI element.
Use the secondary mouse button, and choose
.Follow the instructions in the Fill Values wizard to delete the OVS interface.
You must adhere to the type constraints when you map an operation between the source and target attributes.