on 09-19-2007 2:20 PM
Hello everybody,
I try to open a word document by clicking on a LinkToURL or LinkToAction ui element.
The document is located on a shared drive on the network and not in the WDP application.
But I don't succeed. If I enter the link in the IE by hand it works.
Most of the time I get an InvalidURLException.
Can anybody help me or give me a hint how this can be done?
Help is highly appreciated!
Regards,
Roland
Hi Roland,
Did you try mapping your n/w path to an url and then accessing your document using that url in WD.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murtuza ,
thanx for your qucik reply.
I now at the end found the problem.
Here is the solution for the action triggered by LinkToAction:
try{
String linkToBeOpen = WDURLGenerator.getWebResourceURL(
wdComponentAPI.getComponent().getDeployableObjectPart(),
"file://server
share$
folder1
folder1
My document.doc");
IWDWindow mapWindow = wdComponentAPI.getWindowManager().createNonModalExternalWindow(
linkToBeOpen.replaceAll(" ","%20"),
"Title");
mapWindow.show();
}catch(Exception ex){
wdComponentAPI.getMessageManager().raiseException(ex.getMessage(), true);
}
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
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.