cancel
Showing results for 
Search instead for 
Did you mean: 

Open a new url in new window

Former Member
0 Kudos

Hi all,

I have implemented an application & integrated in EP. In my view i have provided a link on click of which i should be able to open a separate url in a new window.

Again, I need to pass some url parameters which should not be visible in the url string when i am opening that url in new window.

Any suggestions...

Thanks,

Arch

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

First u have to create outbound plug in interfaceview

1)Open the node WebDynpro -


> Web Dynpro Components -


> <ComponentName> -


> Component Interface -


> 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");

}

Regards,

Suresh.T

Former Member
0 Kudos

Hi Suresh,

Hiding the url parameters is working.... But....

I want the url to open in new browser window but it opens in the same browser window.

Former Member
0 Kudos

Hi,

try this it will open in new window....

OnActionButton()

IWDWindow window=wdComponentAPI.getWindowManager().

.createExternalWindow("http://www.google.co.in","Google-search for an email address",false);

window.setWindowSize(100,100);

window.open();

Former Member
0 Kudos

Again the code doesn't work if appplication is integrated in EP

We face this error:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!

Former Member
0 Kudos

For above code.......u dont use plug...delete previous code.....directly write this code for button......

Former Member
0 Kudos

Your code works but it doesn't hide the url parameters....

Thanks for reply...

I got it worked.............usine Navigation api.................

Thanks again,

Arch