cancel
Showing results for 
Search instead for 
Did you mean: 

Simple type invalid value

Former Member
0 Kudos

I have a form with a date field (using a simple type). When I enter a text string into this field and try to save, I get an invalid context value error message for that field - as expected. However, when I try to cancel the form, it does nothing until I clear out the invalid value for that field. I mean the action handler for the buttons actually do not get fired. Any ideas on how to handle this?

-Dave

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Is the action behind the "Cancel" button a "validating" action?

For the difference, see the article

<a href="

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/usage%20o...

">https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/usage%20of%20validating%20and%20non-validating%20actions.pdf</a>

Armin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi David,

Rohit is correct, Until u enter correct value into the field the action handler wil not be fired. And u can simply ignore that field without entering any values(if that field is not mandatory). But if u r entering some invalid data into that field which is already bound to some context attribute, Action handler will not be fired.

Regards,

Sirisha.

Former Member
0 Kudos

You can create a non-validating event and validate the event manually.

Message was edited by: Noufal Kareem

Former Member
0 Kudos

Thanks for the answers... I switched to a non-validating action and handled the Cancel myself.

The buttons to award points no longer appear for me. They used to be on the left side of your answers - under you user names - but they aren't there. Anybody have an idea why that is?

-Dave

Former Member
0 Kudos

You might be having multiple logins

Former Member
0 Kudos

Hi David,

It is the way in which validation is being done in Webdynpro.If you have bound the field to the context attribute of date type,unless you give the right value the event handler will not work.

Hope this helps you

Regards

Rohit