on 09-14-2009 1:03 PM
Hello experts,
I am new to webdynpro, i having a problem with popup, this is the thing , i have created a view where user can enter some text and i have embeded the view to a window. so from my main window i am calling this window so now this window is popping up, and now after entering some value and pressing 'ok' button, it is going back to the view of my main window.Now I have to show up a message in the view of my main window. How do i access the main window from some other window.
please help i am new to webdynpro.
Regards,
Arun
Hi,
Just code to show message using message manager in the onAction of close or any button of your pop up view. It automatically will show on main window. As pop window is closed.
You can use following code to show error message.
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager
.
* report message
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Error_Text' " Give your error text here
* params =
* msg_user_data =
* is_permanent = ABAP_FALSE
* scope_permanent_msg = CO_MSG_SCOPE_CONTROLLER
* view =
* show_as_popup =
* controller_permanent_msg =
* msg_index =
* cancel_navigation =
* enable_message_navigation =
* receiving
* message_id =
.
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you are in Popup,,, You might get some errors right, then donot clear the messages on OK button or close icon on window.
Then automatically those messages are shown on MIAN view when popup is closed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.