How to disable "Save Prompt"?

Hi all, please help me to have a look on following code. I am going to add a new button to ($Inbox). When the button press, following formula will be executed:

QUOTE

=====

@Command([OpenDocument]);

@Command([EditDocument]);

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

@Command([EditSelectAll]);

@Command([EditCopy]);

@Command([CloseWindow]);

@Command([ComposeWithReference];“”:“”;“Memo”; 1+2);

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

@Command([EditInsertText];“Jonathan Wong”);

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

@Command([EditPaste]);

@Command([FileSave]);

@Command([CloseWindow]);

@True

=======

UNQUOTE

I have try to add the field SaveOptions and sets it to “0”, but it still show me the save prompt when I try to close the mail.

Could anyone tell me what’s wrong and how to fix it? Many thanks in advance!!

Best Wishes,

Jonathan

Subject: How to disable “Save Prompt”?

Hi Jonathan,The save prompt that you are getting is because of the Form Property.

If you open the memo form in the domino designer & see the form properties, in the 2nd tab there is a property “On Close” “Present Mail Send Dialog”.

This setting works in conjuction with the Sendto,body & subject fields on the form. so if you have the value in any of these fields ,you will get the SavePopup.

Also right now there is no solution to disable this property through code. The Only solution is to disable this form property.

Subject: How to disable “Save Prompt”?

change the formula as below and see let me know if you need any help.@Command([OpenDocument]);

@Command([EditDocument]);

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

@Command([EditSelectAll]);

@Command([EditCopy]);

@Command([CloseWindow]);

@Command([ComposeWithReference];“”:“”;“Memo”; 1+2);

@Command([EditGotoField];“EnterSendto”); @Command([EditInsertText];“Jonathan Wong”); @Command([EditGotoField];“Subject”);

@Command([EditPaste]);

@PostedCommand([FileSave]);

@PostedCommand([CloseWindow]);

@True UNQUOTE

cheers

Sri.

Subject: RE: How to disable “Save Prompt”?

Thanks Sri., but I am sorry to tell you that the save prompt still popup after changing the code. Do anyone can share experience to us? Thank you.

Subject: RE: How to disable “Save Prompt”?

As the code above, I am using a button to call the form “Memo”. Shouldn’t I create the “SaveOptions” field in the form to avoid “save prompt”? If yes, how can I change the value of the field?I have try to write a @SetField function in ($Inbox) to change it from “1” to “0”, but failed at last. What I am doing wrong? Please advise.

Subject: How to disable “Save Prompt”?

Hi Jonathan,The save prompt that you are getting is because of the Form Property.

If you open the memo form in the domino designer & see the form properties, in the 2nd tab there is a property “On Close” “Present Mail Send Dialog”.

This setting works in conjuction with the Sendto,body & subject fields on the form. so if you have the value in any of these fields ,you will get the SavePopup.

Also right now there is no solution to disable this property through code. The Only solution is to uncheck this form property.

Regards,

Chaitanya

Subject: RE: How to disable “Save Prompt”?

Set up a field on the form called SaveOptions and hide it. Set field to numeric and computed an set its value to 1 (no quotes since it is a number); this has worked for me. This will cause the document to always be save. If you do not want to save the document you could set the field to 0 using formula language of lotus script