SetField and FileSave in same Action

I have the following formula which is in a button on the last tab of a tabbed table:@SetField(“DocStatus”;“AgentNew”);

@Command([FileSave]);

@Command([FileCloseWindow])

Even though I run FileSave, I still get prompted to save the document. How do I get rid of the prompt?

Subject: SetField and FileSave in same Action

Try @POSTEDCOMMAND for the save, or both @COMMANDs.