< Back

Document Subject: EditInsertText revisited
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#EditInsertText or http://A555F9/nn.nsf/ByAlias/EditInsertText

A Lotus Notes beginner asked me about creating documents in Notes using @Functions. I suggested using EditInsertText. It works better than I thought...




The non lotusscript using developer was creating training records from a person's hr record.

I suggested using @command([EditInsertText];<text>)

 

Example use of code:

@Command([Compose];"PersonnelTraining");
@Command([editgotofield];"PT_Coursetitle");
@command([editinserttext];"Principles of Care Day 1");
@Command([editgotofield];"PT_Mandatory");
@command([editinserttext];"Mandatory");
@Command([FileSave]); @Command([CloseWindow]);

@Command([Compose];"PersonnelTraining");
@Command([editgotofield];"PT_Coursetitle");
@command([editinserttext];"Principles of Care Day 2");
@Command([editgotofield];"PT_Mandatory");
@command([editinserttext];"Mandatory");
@Command([FileSave]); @Command([CloseWindow]);

It was suggested that this would not work with Dialog List type fields.

But it in fact does..... : )