cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behavior "Error Message displayed three times".

ArtiBhat
Associate
Associate
0 Kudos

Hi All,

I am facing v.strange behavior while validating the required parameter.

The parameter is checked in WDBEFOREACTION method.

When the input field is empty i am raising the report_attribute_error_message".

The message is getting displayed 3 times instead of once.

Kindly provide me some solution to correct the issue ASAP.

Regards,

Arti.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Arti,

This is not a strange problem, Actually the standard behavior is like that. I mean this WDBEFOREACTION/MODIFYVIEW gets called for any change on the screen.

If you could understand this functionality, then may be you can keep some extra conditions to avoid repeatitive messages.

Hope this helps.

Regards

Raja Sekhar

ArtiBhat
Associate
Associate
0 Kudos

Hi All,

I know it is easy to do validation at the button event.

I dont want to do it as we have implemented important logic in it. We dont want to disturb it.

Everything is working fine if we are implementing it in WDbeforeaction except displaying message .

As wdbeforeaction is getting excecuted twice.

I am looking for the solution that will help in displaying message once.

Regards,

Arti.

Former Member
0 Kudos

Hi,

I was wondering if this the only error message which is getting displayed during that validation. May be you can clear the existing messages using CLEAR_MESSAGES and then repopulate the message, which will avoid the repetitiveness of your messages. That again depends on the number of messages. May be this solution will help you for single message only.

Regards

Raja Sekhar

Former Member
0 Kudos

Hi arti,

check whether the error msg is inbetween any looping statement. I think it is in between loop stmt.

Put breakpt and check in which place these messages r populated.

Regards,

Arun.

ArtiBhat
Associate
Associate
0 Kudos

Hi Arun,

The message is not in loop but the WDBEFOREACTION method is executed two time.

This is the bug in webdynpro.

Rgds,

Arti.

Former Member
0 Kudos

arti,

What is the need for u to validate the input values in wdbeforeaction??

for displaying error msg u can write that code in the on action button instead of wdbeforeaction, which u r going to perform.

Regards,

Arun.