on 06-09-2007 7:39 AM
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);
Never silently catch exceptions.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.