on 04-04-2015 12:01 PM
Hi,
i am new to web dynpro , can somebody tell hoe can i close a custom popup from a close button which is available in the same popup.
Thanks in advance
Regards,
JM
Hi John,
Create an attribute for the popup window under attributes tab with the type of IF_WD_WINDOW in the desired View.
Then open the popup window with the following code ,
wd_comp_controller->popup_window = lo_window_manager->create_window(
window_name = 'W_APP_REJ_POPUP'
title = 'CAS Approval'
close_in_any_case = abap_false
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_yes ).
For closing the popup call this code from the close button:
wd_comp_controller->popup_window->close( ).
- Gowtham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
If you are looking to close a pop up window on a particular button event, please implement the following code in the event handler method.
DATA:
lo_api TYPE REF TO if_wd_view_controller,
lo_window_ctlr TYPE REF TO if_wd_window_controller,
lo_popup TYPE REF TO if_wd_window.
lo_api = wd_this->wd_get_api( ).
lo_window_ctlr = lo_api->get_embedding_window_ctlr( ).
IF lo_window_ctlr IS BOUND.
lo_popup = lo_window_ctlr->get_window( ).
lo_popup->close( ).
ENDIF.
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi john,
May these links will help you,
Web Dynpro application to display a Pop-up window on the browser - Web Dynpro ABAP - SCN Wiki
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.