Skip to Content
author's profile photo Former Member
Former Member

Open Web Browser window

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 04:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.