I have an action button on a V4.11 form that sets a couple of field
values, mails a doclink to a specific user, and then performs a
FileSave and FileCloseWindow. Pretty basic really.
However, after the FileSave and FileCloseWindow commands execute
Notes puts up a FileSave confirmation box. If I redraft the entire
action in LotusScript the problem does not occur.
My question is (i) what is causing the FileSave message box to
appear, and (ii) how do I get rid of it without having to code all my
actions in script?
This problem is not isolated to just one action button or database.
The problem occurs in a number of databases.
I read in KnowledgeBase that a similar problem occurred in R3 and was
related to refreshes of Keyword fields. Could this same problem have
carried through to R4?
Thanks in advance for your help.
CRAIG
An easy way to get around this is to save the document, then set the
saveoptions field to "0", then close. This will prevent the box from
showing on the close.
Example:
@Command([FileSave]);
Field SaveOptions = "0";
@Command([FileCloseWindow];
Note: This only works in R4 notes, in R3 notes the @commands do not execute
in the proper order.
--
***************************************************************************
Check out Unity Consulting's web site at www.unityconsult.com.
For a limited time you can download, free of charge, Liaison Pro, Unity
Consulting's full feature contact management software for Lotus Notes.
***************************************************************************
Craig Air <crai...@ozemail.com.au> wrote in article
<01bc5a09$a65c3ec0$6cb5...@craigair.ozemail.com.au>...
Good luck!
Craig Air wrote
I will give it a go.
CRAIG
Damien Katz <damie...@unityconsult.com> wrote in article
<01bc5a6d$a01afe70$480952a6@damiennt>...
> Craig Air <crai...@ozemail.com.au> wrote in article
> <01bc5a09$a65c3ec0$6cb5...@craigair.ozemail.com.au>...
> > Can anyone help resolve this mystery???
> >
> > I have an action button on a V4.11 form that sets a couple of
field
> > values, mails a doclink to a specific user, and then performs a
> > FileSave and FileCloseWindow. Pretty basic really.
> >
> > However, after the FileSave and FileCloseWindow commands execute
> > Notes puts up a FileSave confirmation box. If I redraft the
entire
> > action in LotusScript the problem does not occur.
> >
CRAIG
pw <pwa...@erols.com> wrote in article
<01bc5a7f$e60895c0$2621...@john.sura.net>...
> Check the queryclose property of your form. If there is no code
that
> changes field values, you might want to add "SaveOptions" field to
the
> form.
>
> Good luck!
>
Cheers.
CRAIG
--
-------------------------------------------------------------------
Tom Faulkner BBS Consultants, Inc.
mailto:tfau...@bbsci.com 919-403-9473
Lotus Notes Application Development http://www.bbsci.com
-------------------------------------------------------------------
1 - I understand that the Courier 9 is hard-coded into Notes.
2 - I have been told that I cannot use LotusScript to change the font
size, and NotesItems.Methods seems to agree.
3 - I have been experimenting with an agent and @commands. All is
successful except for that frustrating “Do you wish to save this
document?” dialog box. I’ve tried lots of FIELD variations without
success. Below is my current script.
Start agent code:
@Command([EditDocument];1);
REM "0 means nosave, 1 means save. 1 always gets a dialog box";
FIELD SaveOptions:="1";
REM "Trying useless variations of a few other variables";
REM "Fussed with these based on NotesHelp search for SaveOptions";
FIELD MAILSaveOptions:="1";
FIELD Encrypt:="1";
FIELD Sign:="1";
FIELD DefaultMailSaveOptions:="1";
FIELD $KeepPrivate:="1";
@Command([EditGotoField];"Body");
@Command([EditSelectAll]) ;
REM "@Command([TextSetFontSize];’12’)";
REM "Tried with and without 0, 1, 2, and nothing";
@Command([FileSave];"2");
@Command([FileCloseWindow]);
REM "@Command([NavigateNextSelected])";
I have 5,000+ mail messages to “fix”. I cannot mess with that dialog
box if there are ANY other options. What would YOU do?
WARNING: I have not tested this, but in theory it should work. Proceed
with caution...
Rocky
--
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Rocky Oliver
Product Development Manager
XLConnect
rol...@xlcnotes.xlconnect.com
_____________________________________
"That is the beginning of knowledge -- the discovery of something we do not
understand."
***Leto Atreides II (Dune Messiah, Frank Herbert)
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Mike Marbuger <mmar...@panenergy.com> wrote in article
<33B0D6...@panenergy.com>...
@Command([FileSave];"2");
FIELD SaveOPtions := "0";
@Command([FileCloseWindow]);
This will safely perform the initial save, but suppress the FileSave
disalog when doing a close.
Let me know how you go.
CRAIG
Hope this helps.
- John
Stephen
Craig Air wrote:
>
> Try placing the SaveOptions field between the FileSave and
> CloseWindow -- see below:
>
> @Command([FileSave];"2");
> FIELD SaveOPtions := "0";
> @Command([FileCloseWindow]);
>
> This will safely perform the initial save, but suppress the FileSave
> disalog when doing a close.
>
> Let me know how you go.
>
> CRAIG
>
> Mike Marbuger <mmar...@panenergy.com> wrote in article
> <33B0D6...@panenergy.com>...
> > My internet mail is delivered into Notes and is saved by Notes in
> > Courier 9 point. I need to make that Courier 12 point. This has
> turned
> > into a flippin’ CONQUEST now!!! Do you have any ideas that will
> work?
> >
> > 1 - I understand that the Courier 9 is hard-coded into Notes.
> > 2 - I have been told that I cannot use LotusScript to change the
> font
> > size, and NotesItems.Methods seems to agree.
> > 3 - I have been experimenting with an agent and @commands. All is
> > successful except for that frustrating “Do you wish to save this
> > document?” dialog box. I’ve tried lots of FIELD variations without
> > success. Below is my current script.
> >
> >
>I had a similiar problem with the filesave box coming up. I tried all
>sorts of things, eventually I changed the file save and file close
>window to Postedcommand([FileSave]) & @PostedCommand([FileCloseWindow])
>and it worked without asking the questions.
>If anyone can explain why, I would be greatful.
Simple; follow the logic, or illogic, of what you've got below...
>Stephen
>
>Craig Air wrote:
>>
>> Try placing the SaveOptions field between the FileSave and
>> CloseWindow -- see below:
>>
>> @Command([FileSave];"2");
Here, you've saved the document.
>> FIELD SaveOPtions := "0";
Now you've changed the document, by forcing a field set.
>> @Command([FileCloseWindow]);
Now you're telling Notes to put the doc away. But, you've changed it,
so naturally it'll prompt you "do you want to save changes?"
Now, my turn. What's the "2" on the fileSave?
Michael Hart Data Solutions Corp.
CLP Notes Developer 954-735-7000 x103
CLP Notes Administrator
Certified Lotus Instructor doing Notes since R2.0