Hallo zusammen,
ich verstehe glaube ich gerade die Save and Close Funktion ala @Command([FileSave]));@Command([FileCloseWindow]); nicht.
Wir haben einen Save and Close Button. Hinter diesem Button liegt die folgende Aktion.
@If(
NewSystemname = "";
result1 := @Prompt([YesNo]; "Save Error" ; "Document cannot be created because the systemname field is empty! Would you like to close the document without saving?");
SystemAdress = "";
result2 := @Prompt([YesNo]; "Save Error" ; "The Document cannot be saved. Please provide the Application Adress! Would you like to close the document without saving?");
ApplicationVendor = "";
result3 := @Prompt([YesNo]; "Save Error" ; "Please provide the name of the application vendor for this application. Would you like to close the document without saving?");
ApplicationVendorWebsite = "";
result4 := @Prompt([YesNo]; "Save Error" ; "Please provide the website the application vendor for this application. Would you like to close the document without saving?");
SystemGroups = "";
result5 := @Prompt([YesNo]; "Save Error" ; "Please provide some usergroups which can access the application. Would you like to close the document without saving?");
@Command([FileSave]));
@Command([FileCloseWindow]);
@If(result1 = 1;
@SetField("SaveOptions";0) &
@Command([CloseWindow]);
result2 = 1;
@SetField("SaveOptions";0) &
@Command([FileCloseWindow]);
result3 = 1;
@SetField("SaveOptions";0) &
@Command([FileCloseWindow]);
"");
result4 = 1;
@SetField("SaveOptions";0) &
@Command([FileCloseWindow]);
result5 = 1;
@SetField("SaveOptions";0) &
@Command([FileCloseWindow]);
Wenn ich nun auf diesen Button klicke und alles brav ausgefüllt worden ist, dann schließt Notes zwar das Dokument, schließt jedoch auch die Datenbank, in welcher das Dokument ist und den Workspace gleich noch mit dazu.
Habe ich hier irgendwo einen Denkfehler? Achso, wir setzen den 8.5.3 Clienten ein, falls das eine Bedeutung hat.
Danke und Grüße
Der Lord