en · de

Quick-Tipp: Programmatically create memo with doclink on top, sig on bottom

by Thomas,
assono GmbH, Standort Kiel,

Quick-Tipp Joe Litton has written some LotusScript code to programmatically create a memo with a doclink on top and the signature of the current user on bottom. He used a modified InsertSignature function (originally from the CoreEmailClasses script library).

But there is a much shorter solution using the formula language, if the doclink should link to the current document or the document currently selected in the current view:

@Command([EditMakeDocLink]);
@Command([Compose]; @MailDbName; "Memo");
@Command([EditGotoField]; "EnterSendTo");
@Command([EditInsertText]; "Lists of recipients...");
@Command([EditGotoField]; "Body");
@Command([EditInsertText]; @NewLine + @NewLine + "Further text..." + @NewLine);
@Command([EditGotoField]; "Body");
@Command([EditInsertText]; "Click on this link to open the referred document: ");
@Command([EditPaste]);

Text inserted after the @Command([EditPaste]) is always inserted before the doclink! Thus you have to write the text, which should appear after the doclink first, than re-enter the body field, write the text before the doclink and than paste it.

This solution also solves the problem, that if the user closes the memo without sending it, it does not leave is unwanted draft document.

Technical article IBM Notes IBM Notes Traveler Development

You have questions about this article? Contact us: blog@assono.de

Sie wollen eine individuelle Beratung oder einen Workshop? Read more

More interesting entries

Any questions? Contact us.

If you want to know more about our offers, you can contact us at any time. There are several ways to contact us for a non-binding first consultation.

assono GmbH

Location Kiel (headquarters)
assono GmbH
Lise-Meitner-Straße 1–7
24223 Schwentinental

Location Hamburg
assono GmbH
Bornkampsweg 58
22761 Hamburg

Phone numbers:
Human resources department: +49 4307 900 407
Marketing department: +49 4307 900 411

E-Mail adresses:
contact@assono.de
bewerbung@assono.de