on 04-29-2008 12:35 PM
Hi,
I want to display the popup message in my view.
But in my scenario, I need to display lot of messages. So if im using Create_window means I need to create many views.
Is there any other way to display the pop up message without view design.
Thanks.
Hi,
You can use method CREATE_POPUP_TO_CONFIRM of interface IF_WD_WINDOW_MANAGER.
Check the below code :
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup1_1 is initial.
wd_this->m_popup1_1 = l_window_manager->CREATE_POPUP_TO_CONFIRM(
TEXT = Text
button_kind = if_wd_window=>CO_BUTTONS_ABORTRETRYIGNORE
message_type = if_wd_window=>CO_MSG_TYPE_QUESTION
WINDOW_WIDTH = '1000'
WINDOW_HEIGHT = '1000' ). "stop -> stopp, Info -> Information
endif.
wd_this->m_popup1_1->open( ).
Thanks.
Edited by: Viji on Apr 29, 2008 1:43 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this,
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
DATA l_text_table type string_table.
data lv_msg_text type string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lv_msg_text = 'Message1'.
APPEND LV_MSG_TEXT TO l_text_table.
lv_msg_text = 'Message2'.
APPEND LV_MSG_TEXT TO l_text_table.
CALL METHOD lo_window_manager->CREATE_POPUP_TO_CONFIRM
EXPORTING
TEXT = l_text_table
BUTTON_KIND = if_wd_window=>CO_BUTTONS_YESNO
MESSAGE_TYPE = if_wd_window=>CO_MSG_TYPE_NONE
CLOSE_BUTTON = ABAP_TRUE
WINDOW_TITLE =
WINDOW_LEFT_POSITION =
WINDOW_TOP_POSITION =
WINDOW_POSITION =
WINDOW_WIDTH =
WINDOW_HEIGHT =
DEFAULT_BUTTON =
RECEIVING
RESULT = lo_window.
lo_window->open( ).
Regards,
Padmam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.