Entering content frame

Procedure documentation Creating the Context and Action

 

Procedure

Creating the Context

To bind the dropdown lists for the vehicle type and pickup location, and the input fields for the pickup date and return date, with the corresponding context attributes, you must first create these attributes.

...

       1.      Open FormView (choose TutWD_Languages_Init ® Web Dynpro ® Web Dynpro Components ® LanguagesComp ® Views ® FormView).

       2.      Switch to the Context tab page.

       3.      Create the value attribute Location.

The Location context attribute is given the data type of the new simple type Location as its value.

       4.      Select the Location context attribute. On the Properties Page, choose This graphic is explained in the accompanying text to open the dialog for selecting the simple type for the type property.

       5.      Select Dictionary Simple Type and choose Dictionaries ® Local Dictionary ® com.sap.tut.wd.languages.simpletypes. Choose the Location simple type and confirm by choosing OK.

This graphic is explained in the accompanying text

       6.      Create further value attributes:

Context Element

Type

Property

Value

This graphic is explained in the accompanying text    PickupDate

Value attribute

type

date

This graphic is explained in the accompanying text    ReturnDate

Value attribute

type

com.sap.languages. simpletypes.ReturnDate

This graphic is explained in the accompanying text

We recommend that you create context attributes that contain a simple type with text resources if the text resources of the simple type appear often on the interface.

This graphic is explained in the accompanying text    VehicleType

Value attribute

type

com.sap.languages. simpletypes.VehicleType

 

Creating an Action

To confirm the booking and display ResultView, create the Rent action.

...

       1.      In FormView, switch to the Actions tab page.

       2.      Create an action by choosing New. Give this action the name Rent and the text Rent. Choose Finish.

 

Next step:

Completing the Layout of the Application  

 

 

Leaving content frame