cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear pending validation messages

Former Member
0 Kudos

Hi,

I have a form with some input validations based on simple types. The view contains a cancel button which leads the user back to another view without saving the form's data. I changed the cancel button's action to "without validation" to close the view withot validating the uses's input. This works fine, but now the called view shows the validation error messages. Is there a way to clear the pending messages?

Thanks,

Thorsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thorsten,

Welcome to SDN forums!

You need to use both IWDValidationCheck to analyze what attributes are invalid, then reset them to valid defaults, then fire outbound plug. All should be done from non-validating action handler.

Please (re-)read <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/edf6ea90-0201-0010-7696-a68662381c12">Using Validating and Non-Validating Actions</a>, section <b>Re-Initialization of Invalid Context Attributes</b>

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Message was edited by:

Valery Silaev

Former Member
0 Kudos

Thanks Valery,

after playing around a bit with your hint I solved my problem.

Answers (0)