Skip to Content
author's profile photo Former Member
Former Member

Opening document through LinkToAction

Hi,

I have a LinkToAction UI element, this link points to a document.

The display of the link is like this

C:/Documents/New.doc

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2005 at 07:10 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 28, 2005 at 08:58 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.