You use this procedure to create a reset button using the available UI snippets in Web Dynpro.
You have created a Web Dynpro development component.
For more information, see Creating a Web Dynpro DC
You have created a Web Dynpro component, window and views.
For more information, see Creating Components
You have created a context.
For more information, see Creating Context Trees Manually
In the Web Dynpro perspective, choose Windows -> Show Views -> Snippets.
Drag the Reset UI element snippet and drop it on the View Designer.
In the Insert Snippet: Reset UI Elements, select the UI elements you wish to reset and choose Insert.
You must bind the UI elements to their corresponding context attributes.
The UI elements with their corresponding property types and context attribute settings are listed in the table below.
UI Element |
Property Type |
Context Attribute |
---|---|---|
TextEdit Formatted TextEdit InputField |
Value |
String |
ToolBarDropDownByIndex RadioButtonGroupByIndex DropDownByIndex |
Texts |
String |
CheckBox |
Checked |
Boolean |
ToolBarDropDownByKey DropDownByKey RadioButtonGroupByKey RadioButton |
selectedKey |
String |
The system creates a reset button on the view. The existing values in the view are reset to default values when this button is triggered.