Domino 9 und frühere Versionen > ND7: Entwicklung
Command File Save
m3:
Aus der Designer-Hilfe:
--- Zitat ---@Command( [FileCloseWindow] )
This command executes after all @functions. Use @Command([CloseWindow]) to execute immediately. See the Order of evaluation for formula statements topic for more details.
If the document or design element in that window has not been saved, Notes prompts the user to save it before closing.
--- Ende Zitat ---
Sommersprosse:
--- Zitat von: m3 am 13.08.08 - 09:56:57 ---Aus der Designer-Hilfe:
--- Zitat ---@Command( [FileCloseWindow] )
This command executes after all @functions. Use @Command([CloseWindow]) to execute immediately. See the Order of evaluation for formula statements topic for more details.
If the document or design element in that window has not been saved, Notes prompts the user to save it before closing.
--- Ende Zitat ---
--- Ende Zitat ---
??? ??? ???
Kann Dir nich folgen, was Du mir damit sagen willst.
Ich habe in einem der vielen Bücher genau so ein Beispiel gefunden in dem @Command( [FileCloseWindow] ) innerhalb eines @do verpackt war. Aus diesem Grund habe ich das auch so versucht. Hab's jetzt noch mal umgebaut und das ganze so gelöst.
--- Code: ---FIELD Approved:="Out";
@If(
@Command([FileSave])&reqAprov1 !="";
@MailSend(reqAprov1;"";""; "Travel Request: "+reqReason;"A travel request was created ... ";"";[IncludeDoclink])&
@SetField("saveoptions";"1");@Return("")
);
@If(
@Command([FileSave]) ;@Command([FileCloseWindow]);
@Return("")
)
--- Ende Code ---
Vielleicht war auch die saveoption falsch, habe immer eine "0" zurückgegeben anstatt eine 1.
So funktioniert es jetzt.
koehlerbv:
Mit SaveOptions = "1", dass Du zudem noch mitspeicherst, wird dieses Dokument nun aber immer gespeichert - ob der User will oder nicht.
Bernhard
klaussal:
--- Zitat ---Kann Dir nicht folgen, was Du mir damit sagen willst.
--- Ende Zitat ---
Ist auch manchmal nicht ganz einfach..... :-X
m3:
--- Zitat von: klauss am 13.08.08 - 13:17:19 ---
--- Zitat ---Kann Dir nicht folgen, was Du mir damit sagen willst.
--- Ende Zitat ---
Ist auch manchmal nicht ganz einfach..... :-X
--- Ende Zitat ---
:P
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln