!--a11y-->
Creating the Context and Action
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
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.

6. Create further value attributes:
Context Element |
Type |
Property |
Value |
|
Value attribute |
type |
date |
|
Value attribute |
type |
com.sap.languages. simpletypes.ReturnDate
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. |
|
Value attribute |
type |
com.sap.languages. simpletypes.VehicleType |
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.
Completing the Layout of the Application
