on 03-11-2009 9:08 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.