cancel
Showing results for 
Search instead for 
Did you mean: 

Open Web Browser window

Former Member
0 Kudos

hi,

I hava the following problem.

In one of my tables within a web dynpro I have one column with urls (e.g http://www.google.com").

what I want to do is to open the url with an external browser window, dependent on which row is selected.

with the code:

IWDWindow window= wdControllerAPI.getComponent().getWindowManager().createExternalWindow(

"STRING" ,"google",true);

I can open a browser window, but only if I hardcode the url. If I want to use a variable (e.g. url) from my table:

String URL = wdContext.currentLinkListMapElement().getURL();

I get a

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Invalid URL=http://www.url.de

exception.

please please help

thanx

Christoph

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Chris,

Are you using the LinkToUrl element? The default 'target' for this element is to open a new window (_blank). Refer to the following for the available values: http://help.sap.com/saphelp_nw04/helpdata/en/c5/dc99f5d1b1504aa0045a7070a0f500/content.htm

The reference property on the link can be bound to a context attribute that holds the url.

Hope this helps.

Cindy