Open Document Error

Hi Friends!

I am very frustrate due to getting error 404 - File not found.

Actually i m trying to open a document with its doc id. and there is a link <a href=“http://server1/dbName1/“+<computed>+”?OpenDocument”>My jobs

where contains docid

I will be very thankful to you if somebody help me.

Vikas

Subject: Open Document Error

You cant open a document directly from the db level like this, either you have to reference a view or use “/0/” after the db parameter.So it would be like this

http://server1/dbName1/viewname/++?OpenDocument

or

http://server1/dbName1/0/++?OpenDocument

  • Sudhir

Subject: Open Document Error

Using a view component in your URL will ease your frustration. The view doesn’t have to exist, just provide a URL segment for it. Frequently Domino developers choose to call it “0” or “_”.

<a href=“http://server1/dbName1/0/“+<computed>+”?OpenDocument”>My jobs

As a side note, it’s generally not a good idea to use absolute links containing the protocol and server name. If any of those change (http → https, servre1 → server2) your links will end up disfunctional. Use a link that is relative to the server instead, like

<a href=“/dbName1/0/”++“?OpenDocument”>My jobs