Skip to Content

Redirecting to external URL in web dynpro application accessed in portal

Hi All,

I want to redirect to external url (eg http://www.google.com) on click of button in web dynpro application, but I am accessing the application through portal.

I tried SAP's recommended approach

1) EXIT PLUG : http://help.sap.com/saphelp_nw70ehp1/helpdata/en/83/e7c24122e3c317e10000000a155106/frameset.htm

it works when i test web dynpro application separately but when I run it through Portal it gave me Error: saying use portal navigation when running inside portal and do not fire exit plug to navigate to external URL

2) so i tried

WDPortalNavigation.navigateAbsolute( "http://www.google.com", WDPortalNavigationMode.SHOW_INPLACE,(String) null,(String) null,WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,(String) null);

this wont work as google.com web page is not part of portal content's (Role/iview)

3) I also tried

WDClientUser.forceLogoffClientUser("http://www.google.com");

again this work's when web dynpro application is tested standalone but when I run it through portal it doesn't work

please let me know if I need to follow some other approach to do this .

Thanks !

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 08, 2010 at 03:37 AM

    hi,

    You can code this a dialog box (popup)

    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dialog%20boxes%20in%20web%20dynpro%20applications.pdf

    or create a url iview out of the url you want and then call the Iview from your wd app.

    http://wiki.sdn.sap.com/wiki/display/WDJava/NavigatebetweenWebDynproApplicationshostedonseperatePortalPages

    Srini

    Add comment
    10|10000 characters needed characters exceeded

    • problem was resolved

      Below solution Worked -

      1) set ume.logoff.url value to <url to be redirceted to>

      2) create html file in KM to execute script

      EPCM.getSAPTop().document.forms["logoffForm"].submit();

      or

      (something like: EPCM.getSAPTop().document.location.href=<new url>).

      3) create KM Navigation iview using above html file

      4) use WdPortal Navigation inside web dynpro code to navigate to the KM

      iview.

  • avatar image
    Former Member
    Oct 11, 2013 at 01:14 PM

    hi,

    why dont you bind the reference property of link to url ui element with the link that you are interested to bind.

    Add comment
    10|10000 characters needed characters exceeded