Show TOC

Procedure documentationCreating a Reset Button Using UI Snippets in Web Dynpro Locate this document in the navigation structure

 

You use this procedure to create a reset button using the available UI snippets in Web Dynpro.

Prerequisites

Procedure

  1. In the Web Dynpro perspective, choose Windows -> Show Views -> Snippets.

  2. Drag the Reset UI element snippet and drop it on the View Designer.

  3. In the Insert Snippet: Reset UI Elements, select the UI elements you wish to reset and choose Insert.

Note Note

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.

End of the note.

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.