cancel
Showing results for 
Search instead for 
Did you mean: 

Override generic field validation errors

manish_sethi
Participant
0 Kudos

Hi,

I have a very common requirement where there is a date field on the view, when the user enter some non-date data like any letter etc. in the text box rather then selecting it from the default date picker pop-up (displayed when I assign this Input Element to a context attribute of type 'date') then the

webdynpro framework generates and displays some default errors.

My issue here is that I want to display custom errors here. I tried using Non-validating actions but still I the generic errors are displayed on the view.

Can some one please advise a solution or workaround for the same.

I have to use the attribute of type date in order to enable the date selection on the UI.

I am using SAP NW 7.3

Regards,

Manish

Accepted Solutions (0)

Answers (1)

Answers (1)

govardan_raj
Contributor
0 Kudos

Hi Manish,

Since the Webdynpro framework doesnt accept the invalid values like character in date field and having  values like integer whose range exceeds the int range in java, etc ... framework throws the default errors because the framework will not accept them.

here  you want to display your own custom errors instead of default framework errors ?

Regards

Govardan

manish_sethi
Participant
0 Kudos

Yes Govardan you get it right.

I want to diaply custom errors instead of the normal framework errors.

Regards,

Manish