cancel
Showing results for 
Search instead for 
Did you mean: 

calling pop up from link to url ?

Former Member
0 Kudos

hi,

How to call a POP UP from an UI element LinkToUrl .

what are the methods available to create it?

reply me soon..

Lakshmi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

Former Member
0 Kudos

Hi Thomas,

I want to raise a pop up window( not by creating external window ) when I click on the LinkToUrl element.

where and how to write the code for it?

Lakshmi.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I think you have the wrong UI element if you want to launch code. With the LinkToURL, you can only launch URLs. If you want to have code use a LinkToAction. Then you will have a normal event hanlder to code the popup.

Do you need help coding the popup itself?