Mailto Question

Sorry for this basic question here, but what is the best way of launching the client with a new message form and inserting the address from a field within a notes app.

At the moment I am doing it this way - I have an action bar button with this formula in it:

@Command([EditDocument]);

@Command([EditGotoField];“HomeEmail”);

@Command([EditSelectAll]);

@Command([EditCopy]);

@Command([EditDocument]);

@Command([Compose];@MailDbName;“Memo”);

@Command([EditGotoField];“SendTo”);

@Command([EditPaste])

Which then switches to mail and displays a “Cannot Locate Field” dialogue box.

When you press OK it inserts the mail address into the to field and all is Okay!!

Can anyone suggest a better way of doing it??

Many thanks in advance.

Matt.

Subject: Mailto Question

On the last line instead of edit paste, try edit insert text and pass it a variable. I have had trouble in the past with edit copy and edit paste when trying to do this. You may also try using @PostedCommand instead of @Command.

Subject: The Memo form has been changed. The field “SendTo” does not exist on the form…

as an editable field (its actually hidden from the Notes Client). So this line fails:@Command([EditGotoField];“SendTo”);

If you need to navigate those fields Try:

@Command([EditGotoField];“EnterSendTo”);

@Command([EditGotoField];“EnterCopyTo”);

@Command([EditGotoField];“EnterBlindCopyTo”);

Subject: RE: The Memo form has been changed. The field “SendTo” does not exist on the form…

I used Bills response and changed the field name to EnterSendTo and it now works 100% OK.

Thanks very much for all your help. Much appreciated.

Matt.

Subject: Mailto Question

Try using @UpdateFormulaContext before the second editgotofield. It might be trying to ‘go to’ SendTo on the first form where there is no such field.

If that is the case I’m not sure why the insert to SendTo would work. Maybe the memo form puts the insertion point there for you.

Or you could write the thing in Lotusscript instead and insert the SendTo value through the back end before displaying the document.