@Command([OpenDocument]) and "Cannot execute the specified command"
by florian vogler :: Error Message | Programming
Hm ... I tried to use an @Command([OpenDocument]) in an Action Button - @Formula just now and all I got was the error message "cannot execute the specified command" after clicking on the hotspot ... has anyone else ever encountered this and would know why this happens? I just couldn't figure out why it wouldn't/shouldn't work ...
I then worked on a workaround in LotusScript using NotesUIWorkspace.Dialogbox and needed to Evaluate a Formula - everytime I use the Evaluate function, this part of the documentation makes me cry:
On the other hand I must admit that Designer help has saved me countless hours with its comprehensive examples and otherwise fantastic contents.
I then worked on a workaround in LotusScript using NotesUIWorkspace.Dialogbox and needed to Evaluate a Formula - everytime I use the Evaluate function, this part of the documentation makes me cry:
objectI am in the product documentation, or not? - I've never seen any documentation as to whether a macro - in other words @Formula - requires an object and if so, which ...
Optional. The name of a product object. Refer to the product documentation to determine if the macro requires an object, and what the object is.
On the other hand I must admit that Designer help has saved me countless hours with its comprehensive examples and otherwise fantastic contents.
Comments
As to why your @Command didn't work -- look at the context. Are you in a view? Is the document in question in the view?
Andre Guirard, 2008-03-30 17:23
I simply was not in a view but trying to call the @Command([OpenDocument]) from an action hotspot in a document.
And I'll use the feedback link now, too.
Florian Vogler, 2008-03-30 18:50
www.baidu.com, 2010-06-27 15:25