ergebnis := @Prompt([YesNo];"Hinweis";"Wollen Sie speichern?");Das ist das Ende vom Script. Dann kommt die Warnmeldung, dass das Dokument noch nicht gespeichert wurde und dann ist Schluss.
@If(ergebnis = 1&@Command([FileSave]);@Do(
...
@SetField
...
@If(@Command([FileSave]);@Command([ToolsRunMacro];"aSubmitApplication");""));@Return(""))
Ich befülle alle Pflichtfelder (Prüfung im Querysave) und will das Dokument - via @Commands im Button - speichern.
@Prompt([Ok];"test";"agent")[color=red][u][b]&[/b][/u][/color]@Command([RunAgent]@If(@Command([FileSave]);@Prompt([Ok];"test";"agent")&@Command([RunAgent];"aSubmitApplication");@Prompt([Ok];"test";"NICHT")));@Return(""))