on 04-28-2008 10:05 AM
Hi,
I am new in web dynpro for ABAP. Now I am facing a problem of how to make a view pop up.
Since I had already create some table in this view. I just want to make it pop up after I click a button. But I had no idea to do it, could anyone tell me how to do it?
Thanks!
Edmond
Hi Ho,
For POp up view please follow the below steps.
1. Create one view [Ex:popup_view] and design it as per your requirement.
2. Create one window [Ex:popup_win] and embed the popview_view into pop up window.
3. Then write the below code when ever you need a pop up window.
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 = 'POPUP_WINDOW'
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>CO_MSG_TYPE_STOPP ).
endif.
wd_this->m_popup1_1->open( ).
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ho ming,
if you want to display yor table as a popup....
have the table in another view and embed it to another window and in the onclick event of the button in view1,
use the method
create_window in the interface if_wd_window_manager to display it and pass the window name to it.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to define a new window, and embed the view to be displayed as a popup in that window. Then from your calling view, you need to launch the popup. Have a look at the examples WDR_TEST_POPUP*
Regards,
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.