On @Command get "Cannot execute the specified command."

I am trying to put a button on a response document that will open the parent document. I used this command on the button:

@Command( [OpenDocument] ; 1 ; @InheritedDocumentUniqueID )

I also tried it with:

@Command( [OpenDocument] ; 1 ; $Ref )

Regardless, whenever I click the button, I get the pop-up message that says, “Cannot execute the specified command.”

Actually, I even got the message when I tried:

@Command( [OpenDocument])

I haven’t been able to find any references that connect that error message to that particular command. Any ideas?

Thanks,

John

Subject: On @Command get “Cannot execute the specified command.”

Use lotusscript.Get document parent with the function "Set notesDocument = notesView.GetParentDocument( document )"and then open it

Subject: On @Command get “Cannot execute the specified command.”

Have you read the Help about this command on the Designer Help? In order to use this command, a database must be open to a document view and the view must contain the document you want to open. So executing this command from a response doc, without the view containing this parent doc open, will not work.