cancel
Showing results for 
Search instead for 
Did you mean: 

external window problem

Former Member
0 Kudos

Dear all,

when i write below code, i'm find that url is empty. do you know why? or how i can trace or get string url for my external application?

String url ="";

String depObjectName =

wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

try {

WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"WindowName",WDDeployableObjectPartType.APPLICATION);

url = WDURLGenerator.getApplicationURL(depObjectpart,urlParameters) ;

} catch (Exception e) {

}

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url,WindowName,true);

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Never silently catch exceptions.

Armin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Wijaya,

U just use the following code to create an external window

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

window.open();

Former Member
0 Kudos

Hi,

It is because you are getting the deployable object part of your component and not the application. It should be like this:

String depObjectName =
wdComponentAPI.getApplication().getDeployableObjectPart().getDeployableObjectName();

Regards,

Satyajit.