on 2005 Nov 28 3:47 AM
Hi,
I have a LinkToAction UI element, this link points to a document.
The display of the link is like this
<u>C:/Documents/New.doc</u>
But when i click on this link, nothing is happening, whether i have to set some action in onActionLinkClick method or leave it blank ?
I thought the OS will automatically open this word doc.
Do i have to do any special settings in browser or server.
Thanks
Senthil
Hi senthil,
if you enable the directory listing option under the general tab then you can give an alias name for a folder in server and can open a folder on click of link to action.you can put all the documents in the folder and can open it
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo Senthil,
it seems as if you intend to let the user open a file on his or her local file system via a hard file reference.
Let me give you the following recommendations:
Opening a File which is stored on the server is done using the FileDownload-UI-element.
For opening a local file on the client you can use the LinkToURL-UI-element (but not the LinkToAction). You can use the file: prefix for addressing files on the client's local file system. When doing this you must be sure as an application developer that this file really exists. You cannot react on a file not found event on the client machine.
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
You can go to visual admin->services->http provider
select the aliases tab
create a alias for the document and give the path
Create an action for link to action and write the following code in implementation
IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow("http://<server name>:50000/<alias name>","<title>",false);
newwindow.open();
or you can mention the url in IFrame
Regards
Rohit
Hi Bertram,
First i tried using the LinkToURL, it gave me a error saying invalid URL.
I gave the full path of the document in the local machine. File is there in the local (client) machine.
Suppose my file is in <u>C drive</u> under a folder called <u>TEST</u>, file name is <u>First.doc</u>
What should be my URL.
Hi Rohit,
I will try to read the file from server and will get back to you. My requirement was to open the document from local client machine.
Thanks
Senthil
Hi,
You have to put it in the server .If you have the document in test folder in c drive
then go to
\usr\sap\<instance name>\JC<instance number>\j2ee\admin\go.bat
open visual admin
go to services->http provider
select the tab alias
give a name say testword and define the path as c:/test/<name of the document>.doc
save properties
write the code below in the action associated with the link
IWDWindow newwindow = wdComponentAPI.getWindowManager().createExternalWindow("http://cgnlpt041:50000/testword","<title of window>",false);
newwindow.open();
deploy the project
Hope this helps you
Regards
Rohit
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.