on 04-30-2007 1:53 PM
Hello,
I have a form for saving email addresses. In this form you have to type your email in a input-field an then you must retype it in another input-field. After clicking a button the email address is stored ....
How can i display a PopUp (or something like that) when the two addresses are different? Further the navigation to the next view, where I store the address should stopped and the user have to check his data.
Thanks
Hi Chris,
The standard method is to display a message in the message area.
You can do this in WDDOBEFOREACTION:
data lo_api_controller type ref to if_wd_view_controller.
data lo_action type ref to if_wd_action.
lo_api_controller = wd_this->wd_get_api( ).
lo_action = lo_api_controller->get_current_action( ).
if lo_action is bound.
case lo_action->name.
when '...'.
* TODO: check whether both attributes are identical.
* if not, use the code wizard to report an error message
* REPORT_ATTRIBUTE_ERROR_MESSAGE and
* enter the element reference and the attribute name of the second field.
endcase.
endif.
Then the action handler will not be called in case of an error.
Ciao, Regina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.