cancel
Showing results for 
Search instead for 
Did you mean: 

Call a "LinkToURL" element

Former Member
0 Kudos

Hi community,

I create a "LinkToUrl" element in View, this is to link an external application with reference property.

I would like fire "action" of "LinkToURL" obj, from Event Handler.

It's possible??

Best Regards,

Antonello

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Antonello,

Create a link to action UI element in the view .In the associated action write

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow("<url>", "<title>", false);

// for opening the window.

window.open();

The third parameter is for determining whether the window is modal or not. so make it false

You can also use a link to url for this

specify the url in reference and make the target as _blank

See the link for more details

http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/frameset.htm

Regards

Rohit

Answers (2)

Answers (2)

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

In the Link to url UI element,thete is a property Event onAction, create an action event handler and write the following code to call the external window.

IWDWindowInfo window=wdComponentAPI.getWindowManager().createExternalWindow("http://www.google.de",

"Google-Search for an email address",false);

window.open();

Regards,

Vijayakhanna Raman

Former Member
0 Kudos

Use IWDWindowManager API to open an "external" window that points to the URL given in the link.

Armin

Former Member
0 Kudos

Btw, one thing that WD team has to consider: modern popup blockers prevent opening external windows this way. Check WebDynpro advent calendar for example.

VS