on 06-25-2008 2:52 PM
hi,
How to call a POP UP from an UI element LinkToUrl .
what are the methods available to create it?
reply me soon..
Lakshmi.
Hi,
If you use LinkTo Action element you can achieve opening a popup..In its action method use 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( ).
where,
'CUST_POPUP_WD'-> name of your window which has the popup view
In attributes tab include
attr name of type IF_WD_WINDOW
Regards,
Dinesh
Edited by: Dinesh Babu on Jun 26, 2008 11:03 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you mean by PopUp? Do you just want the link to open in a new browser window? If so, then use property target to control that.
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 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.