on 08-12-2008 6:50 AM
hi,
i m new in web dynpro ABAP. i wants to create a popup for a button displaying some message. plz try to give some dummy program name also.
Hi Pankaj,
Please go through the below link :
http://saptechnical.com/Tutorials/WebDynproABAP/Popup/page1.htm
Hope it is useful.
Regards,
Prakash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In ATTRIBUTES tab include
CUST_POPUP_WD of type IF_WD_WINDOW
- where CUST_POPUP_WD is the window name
In the Button Action you can add the following codes:
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->cust_popup_wd is initial.
wd_this->cust_popup_wd = l_window_manager->create_window(
window_name = 'CUST_POPUP_WD'
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_question ).
endif.
wd_this->cust_popup_wd->open( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure what SP level it came in; but as you can see from my screen shot in newer SP levels there is a code wizard that will generate the code for Pop Up windows for you. You just need to supply the component usage and window from the value help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
WDR_TEST_POPUP_TO_CONFIRM is the standard component
see the button click event in MAIN view
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
l_popup = l_window_manager->create_popup_to_confirm(
text = l_text_table
button_kind = l_conf_context-button_kind
message_type = l_conf_context-message_type
close_button = l_conf_context-close_button
window_title = l_conf_context-window_title
window_left_position = l_conf_context-window_left_position
window_top_position = l_conf_context-window_top_position
window_position = l_conf_context-window_position
window_width = l_conf_context-window_width
window_height = l_conf_context-window_height ).
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.