cancel
Showing results for 
Search instead for 
Did you mean: 

Open url in the same window

Former Member
0 Kudos

Hello all,

Using the following code, open a URL in an external window:


IWDWindow externalWin = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url, "Info tripno");
externalWin.setWindowPosition(WDWindowPos.CENTER);
externalWin.removeWindowFeature(WDWindowFeature.MENU_BAR);
externalWin.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
externalWin.removeWindowFeature(WDWindowFeature.STATUS_BAR);
externalWin.removeWindowFeature(WDWindowFeature.TOOL_BAR);
externalWin.setWindowSize(800,650);
externalWin.show();

Using a LinkToUrl the target _self, _main ... etc do not work.

Is there any way to do this? I use the following url changing is the last trip.

http://<hostname>:<port>/irj/portal?NavigationTarget=ROLES://portal_content/com.sap.pct/every_user/c...

Best regards,

Jennifer Lohan.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Solved.

Former Member
0 Kudos

Hi,

A LinkToURL is rendered as an anchor tag with its target attribute always set to "_blank" and there is no way to change this. If you are navigating to a portal page/iview within the same server, you can use portal navigation and a LinkToAction UI element.

Regards,

Satyajit

former_member185086
Active Contributor
0 Kudos

Hi

LinkToUrl will not work here as

The LinkToURL UI element is a kind of hypertext link.Navigating to this link leads to a user-defined Web resource (URL), which has it own predefined window .

. If it a simple URL then define the Element only will automatically open In External Window (basically it a Internet Explorer )

Further [help|;

Best Regards

Satish Kumar