cancel
Showing results for 
Search instead for 
Did you mean: 

WDDOBEFOREACTION issue

Former Member
0 Kudos

I Have Problem with method WDDOBEFOREACTION.

My application:

User enter value in view and click button

i do my validate in this method (WDDOBEFOREACTION) in case of error it raises an error message.

but some times it complete the logic and execute the action associated with button.

I need to stop the application in case of error

BR,

Ali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ali,

WDDOBEFOREACTION is wrong place to do a Validation that needs to be carried on the action OnClick. Ideal place to put this validation is in the ACTION method of the associated UI element.

In you case put all the validation logic in the OnClick action.

Greetings

Prashant

Answers (2)

Answers (2)

arjun_thakur
Active Contributor
0 Kudos

Hi Ali,

Please refer these this thread and look for the code given by Alejandro Bindi.

I hope it helps.

Regards

Arjun

Former Member
0 Kudos

hi,

->You can write the logic in the onAction of Button only.

->If error message is raised , dont proceed further.

->If no error message , then write the logic.

i.e in the onAction First do the Validation for the Value entered by the User.

if user_input is ok,

Write the logic.

else

Raise Error Message.

endif.

I hope it helps.

Thanx.