cancel
Showing results for 
Search instead for 
Did you mean: 

Open URL in same window

Former Member
0 Kudos

Hi All,

I want to executing a URL ""http://www.google.com" in the init method of the form. I want to open this URL in the same form (window) and not in an external window.

For external window I am able to use the code

wdComponentAPI.getWindowManager().createExternalWindow

Plz suggest sth for opening in the same window.

Regards

Nikhil Bansal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

in below application this concept is used,if u click Exit button it goes to "http://sap.com" try this....if u do this application u can learn some more concepts...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4a417a90-0201-0010-f499-8d41fc78...

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

First u have to create outbound plug in interfaceview

1)Open the node WebDynpro &#8594; Web Dynpro Components &#8594; <ComponentName> &#8594; Component Interface &#8594; Interface Views in that click <interfacename> interface view .

2) Select the Plugs tab in the Plugs area.

3)Choose New next to the outbound plug table.create new outbound plug.for example,Name GotoUrl, and choose Type Exit Plug.

4)Select the new outbound plug GotoUrl and choose New next to the parameter table.taEnter the name Url datatype as STRING.

5)Open the view in the View Designer and select the Properties tab. Choose Add next to the Required Controllers table and add the <interface name>InterfaceView

Place 1 button and check,

onActionButton write this code

{

wdThis.wdGetSampleInterfaceViewController().wdFirePlugGotoUrl(

"http://www.google.com");

}

Message was edited by:

Suresh T

Former Member
Former Member
0 Kudos

hi,

This is the code open the URL in same window

first u have to create one button...after that u have to write onaction in corsponing button... after that this coding is to be implemented

IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow("http://www.google.de","Google-search for an email address",false);

window.open();

Former Member
0 Kudos

Arunagiri,

Your code open the window in an external window.

Nikhil

Former Member
0 Kudos

Hi,

There are two options:

1. If you are running a standalone application , then use Exit plugs as has been suggested in one of the replies.

2. If you are running inside the portal, then firing of Exit plugs will not work. In this case you will have to create an URL iview. Then you will have to use portal navigation to this iview.

Regards,

Satyajit.

Former Member
0 Kudos

Hi Satya,

Can you plz provide some more inputs or any tutorial for the same.

Regards

Nikhil

Former Member
0 Kudos

Hi,

You can find a tutorial on portal navigation <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b5380089-0c01-0010-22ae-bd9fa40ddc62">here</a>.

Regards,

Satyajit.

Former Member
0 Kudos

Thanks Satya.

Former Member
0 Kudos

Hi,

you can refer to this thread:

Reward points for helpful answers.

Best regards,

Gianluca Barile