Action Button on form

Subject: Action Button on form

Subject: Action Button on form

A simple solution would be to make it launch a URL and set the URL to mailto:Stephen M Christian/DIV/COM?Subject=Hello+There

Another approach would be:

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

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

@Command([EditInsertText]; “Stephen M Christian/DIV/COM”);

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

@Command([EditInsertText]; “NOT ME/DIV/COM”);

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

@Command([EditInsertText]; “Hello World”);

With this second approach you and add CopyTo, and even embedded text in the body of the e-mail.

Subject: RE: Action Button on form

Subject: RE: Action Button on form

You always need to be careful when mixing @Commands and @functions as you cannot assume they run in a particular order. Try it and we will learn. You mighr want to change them to @PostedCommand .

var:=@prompt([YesNo];“Do you want to send email to HR?”)

@if( var=0; @return(“”); “”);

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

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

@Command([EditInsertText]; “Stephen M Christian/DIV/COM”);

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

@Command([EditInsertText]; “NOT ME/DIV/COM”);

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

@Command([EditInsertText]; “Hello World”);

Subject: RE: Action Button on form

Subject: RE: Action Button on form

Onr thing is that you haven’t got a title in the prompt. If there any bits missing the prompt doesn’t work but doesn’t tell you why.

Subject: RE: Action Button on form

Subject: RE: Action Button on form

OK this code worked fine for me??

If I click Yes, I get a new Memo. If I click No Nothing happens.

var:=@prompt([YesNo];“title”;“Do you want to send email to HR?”);

@if( var=0; @return(“”); “”);

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

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

@Command([EditInsertText]; “Stephen M Christian/DIV/COM”);

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

@Command([EditInsertText]; “NOT ME/DIV/COM”);

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

@Command([EditInsertText]; “Hello World”);

Subject: RE: Action Button on form

Stephen thanks for your help…works like a dream!!!