I’m trying to paste a doclink via command into a new form into a certain field. But instead of displaying a link in that field it is pasting the whole document into that field - how can this be avoided?Thanks and regards
Joe
I’m trying to paste a doclink via command into a new form into a certain field. But instead of displaying a link in that field it is pasting the whole document into that field - how can this be avoided?Thanks and regards
Joe
Subject: Pasting a doc link via command
@SetField(“SetWhenDocLinkAttached”; “Doc Link Attached”);@Command([OpenView];“(CRSBYNUM)”;ChangeReqNo);
@Command([OpenDocument];“1”);
@Command([EditMakeDocLink]);
@Command([CloseWindow]);
@Command([CloseWindow]);
@Command([EditGotoField];“ABDocLink”);
@Command([EditPaste]);
@Command([EditGotoField];“DesignDocument”)))))
Subject: RE: Pasting a doc link via command
Thanks much, but I guess I was not precise enough. It is rather a new doc than a form to which I try to paste. This is the code:
@Command( [EditMakeDocLink] );
@PostedCommand([Compose];“”;“Forwarding Template”);
@Command([EditGotoField];“Field1”);
@PostedCommand( [EditPaste] );
But like I say, it is pasting the complete doc instead of the link.
Subject: RE: Pasting a doc link via command
In fact, what I try to do is a) to open an auxilliary doc based on a form that contains a table with a field in which I want to put the doclink to which the receiver should be able to link
b) then after this I want to select and copy everything on that aux doc, which contains also 2 buttons with Actions
c) paste this into a new mail
The aux doc is only used to obtain the text with the 2 buttons from which it inherits from its form. The aux doc is not even stored.
I do this, as I want to have on top of the doclink also this 2 action buttons that create connection documents to the respective DB, and I did not find any other smart way how to create a mail that includes the doclink and the action buttons at the same time.