on 08-04-2008 9:42 AM
hi all,
will anybody guide me the procedure to how to create a pop up in webdynpro application..plz as am new to it and i had requirement of creating pop up window in starting the application.
thanks in advance.
Did u create second window in your application.Place your second view on second window then call your second window from the CREATE_WINDOW Method.
Check this standard example it will clarify your doubt.
WDR_TEST_POPUPS_RT_00 in this they have created seperate windows for pop ups.
check this method.
method onactionpopup1_1 .
data: l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager.
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_window(
window_name = 'POPUP1_1'
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_question ).
endif.
wd_this->m_popup1_1->open( ).
endmethod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vaishu.
Did you post your question seperately or not.Why because when i was trying to answer to your question,it is getting into others thread.
Please check your previous thread where you posted your question.
Thanks
Suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the way to call a Pop up window from your application.
data:l_window1 type ref to IF_WD_WINDOW_ManageR,
result type ref to IF_WD_WINDOW,
l_cmp_api type ref to if_wd_component.
l_cmp_api = WD_COMP_CONTROLLER->wd_get_api( ).
l_window1 = l_cmp_api->get_window_manager( ).
result = l_window1->create_window(
MODAL = ABAP_TRUE
window_name = 'WINDOW1' "Pop Up Window name
TITLE = TITLE
CLOSE_BUTTON = ABAP_TRUE
BUTTON_KIND = BUTTON_KIND
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
CLOSE_IN_ANY_CASE = ABAP_TRUE
MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
DEFAULT_BUTTON = DEFAULT_BUTTON
).
thanks
Suman
result->open( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dialog boxes are implemented within a Web Dynpro application via an additional window and are generally called by the event handler of an action (if necessary however, all other methods of the phase model can be used). The component controller contains the interface IF_WD_WINDOW_MANAGER, with which a new window for the content of the dialog box can be created and opened. (During the creation process, a usage of the corresponding component controller is automatically set up for every view controller.) In most cases, you will use a modal dialog box in your application.
write the code in event handler of first window.
also check this link
http://help.sap.com/SAPHELP_NW04S/helpdata/EN/43/bcd2b8e326332ee10000000a11466f/content.htm
hi suman,
thanks for ur reply.
i want my pop up when i clk on button ok on my 1st view.
so i included the code in the method of ONACTION OK.
but am not able to display any sort of pop up.
my code is
DATA lo_nd_node TYPE REF TO if_wd_context_node.
data: lr_popup type ref to if_wd_window,
lr_view_controller type ref to if_wd_view_controller.
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.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'WW_POP'
title = 'my first message'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_ok
).
lo_window->open( ).
will u help me out in this.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.