This is really a bizarre set of circumstances. I have a rich text field that an attachment lives in. I have designed a button for Client (not web) that allows the user to update the attachment.
I understand the usual provisios:
-
The form is open for Edit
-
The RT field is Text Editable
-
The RT field gets focus before the attachment
-
The field is deleted before the new attachment
-
The attachment gets the path from a variable and is real
Here is my code:
@If(@IsDocBeingEdited; @True;@Command( [EditDocument] ; 1 ));
@Command([EditGotoField]; “fldAtchFileRT”);
@Command([EditSelectAll]);
@Command([EditClear]);
@Command([EditInsertFileAttachment];APath)
Now Get This ! It works! It actually does all that is intended yet STILL gives the “Cannot Execute Specified Command” error.
Is there any way to shed light on this and get rid of the stupid mis-enformed error message?
Thanks