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.
User | Count |
---|---|
83 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.