Open a document

Hi,

How can i write a formula on a button so that

when ever any user click that button ,document belongs to his name from a database should be open for him to edit.

I can open the database,i can open the view

but i cannot found anything which open the specific document . any help in this regards?

Thanks

Subject: Open a document

Are you using the Web client or a Notes client?

Subject: RE: Open a document

We are using notes client.

Subject: RE: Open a document

Can you get hold of the document? If yes, then use ws.editdocument (true, doc) to open the document in edit mode or ws.editdocument (false, doc) in read mode.

If you can not get a handle on the document then from the view loop through the documents to get to a specific document and then use the above to open the document.

Ahsan