cancel
Showing results for 
Search instead for 
Did you mean: 

Reset selected value in DropDown

Former Member
0 Kudos

Hi,

In my WD I have only one view consisting of a dropdown list and a button. When the view is displayed for the first time there is no value visible in the DropDown which is fine. After selecting some value from the dropdown and pressing the button an action is performed. When is action is ready I return to this view. However, the selected value from the DropDown is still the same. I would like to have the initial value again.

How can this be accomplished?

Kind regards,

John.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

John,

just invalidate the node and attribute associated with the element.

data node_name type ref to if_wd_context_node

if node_name is bound.

node_name->invalidate().

endif.

Thanks

Bala Duvvuri

Answers (1)

Answers (1)

alejandro_bindi
Active Contributor
0 Kudos

If it's a DropDownByKey, just clear the value for the attribute bound to the DDK, if it's a DropDownByIndex, clear the lead selection.

If you need more details please clarify which one you're using...

Regards