Open Parent Doc with button

some really simple formula code, i have NO IDEA where I’m going wrong, it should work IMO.

@Command([OpenDocument];Write;@Text(@InheritedDocumentUniqueID));

I’ve checked that they return a unique ID, but all I get when I try to execute this on a hotspot button is “Cannot execute specified command”

I’ve also tried it without the @Text, but of course that doesn’t work either (as expected) and I’ve also tried ReadOnly open.

I did search this, didn’t find anything with “button open parent” Thanks for any help!

Subject: Open Parent Doc with button

Might not work because the parent/response are not in the last view used, or the parent is not saved yet…

See here:

http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/OpenParent

for a detailed @formula solution and also a lotusscript solution.

-Adam

Subject: Open Parent Doc with button

from the help:

A database must be open to a document view and the view must contain the document you want to open.

So if you are calling it from a form, using formula, you need to open the view where the parent resides, call openDocument, re-open the view and close it (so that you do not have a view opened).

Alternatively use Lotus Script.

Subject: Open Parent Doc with button

@Command([OpenDocument];Write;@Text(@InheritedDocumentUniqueID))

From the help:

" @Command( [OpenDocument] ; writeOrReadOnly ; UNID ; width : height)

Parameters

writeOrReadOnly

Text (“1” or “0”). Optional. A value of “1” opens the document in Edit mode. A value of “0” (the default) opens the document in Read-only mode. "

You’ve specified Write as your first parameter. This is probably only going to work if you’ve got a field called Write on your form which has a text value of either 1 or 0. Is this the case? If not, you need to change your formula so that the first parameter is “1”

Please post back with your results.

Emily.