cancel
Showing results for 
Search instead for 
Did you mean: 

DropDownListBox and input validation

Former Member
0 Kudos

Hi all,

I'm trying to do a input validation in my Web Dynpro View in the method wddobeforeaction. If there are any errors in any input field, the navigation shall be canceled. The validation is triggered by an action which is assigned to the DropDownListBox (DDLB).

The cancelation of the navigation works fine but unfortunately the DDLB does show the wrong value afterwards - it show's the value I have selected! Is there a way to change it back to the former value again? It's just a UI blemish but I would like to change it!

Is there any possibility? wddomodifyview is not called to the validation error!

Thanks & best regards,

Stefan

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Just change the value of the context attribute (for DDLB By Key) or the lead selection of the context node (for DDLB By Index) that is bound to the UI element. You don't need the WDDOMODIFYVIEW in order to do this.

Former Member
0 Kudos

Thank you very much! I thought the framework does not pass the value to the context before the validation is done successfully! Now it works!

Answers (0)