on 04-03-2010 8:56 AM
I want to display a popup and I am using that, I have abt 10 fields in the popup.Now out of them 8 are mandatory.
I need to display an error message in the popup itself , if the mandatory fields are not filled.
Now this is happening if I set the parameter close_in_any_case of the create_window methid.
Now on YES , the document is posted.
Now what happens is that in case the user has enterd all fields and say the document is created on click of Yes , the sucess messages also appear in the popup and it doesnt close.
Now whatI need is to play with the parameter close_in_any_case and close it in caseof a sucess posting and display the sucess message on the main page and not the popup.
.
In your calling window you wil have pop up window reference, you can try to call close method of if_wd_window to close the window. Once window is close then display the success message by getting the message manager reference of calling window.
Regards
Manas Dua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you are using either of the methods, REPORT_SUCCESS or REPORT_ERROR_MESSAGE for you purpose, both have a import
parameter called VIEW. You can try passing your view name, on which you want the message to appear, to this parameter.
Regards,
Sagar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
while calling methode to display message in your main page , pass the main page view name also in it
like below
CALL METHOD wd_comp_controller->gref_msg_manager->report_success
EXPORTING
message_text = 'No Inconsistencies found'
view = 'ZVIEW_MAIN'. <----
Here
Edited by: Akash on Apr 5, 2010 12:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
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.