FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
fatsoua fatsoua 23.Nov.16 06:06 AM a Web browser Domino Designer All Releases All Platforms
I have a Web form with some fields on it and an $$Return field. On the submit button I am validating the fields with formula language and upon success, I would like to run an agent and if that agent runs successfully to save and close the form by opening a new URL/page ($$Return value). I have tried this:
@If(newPetition_address1 = Null; @SetField("Error_address1"; "Enter address"); @Success);
Only the last 2 commands execute. So I also tried this: @PostedCommand([FileSave]);
@If(newPetition_address1 = Null; @SetField("Error_address1"; "Enter address"); @Success) and run the agent from WebQuerySave. Where the result is the agent runs first and then the rest. If I include the @PostedCommand([FileCloseWindow]); as well then again only the FileSave and FileCloseWindow commands execute.
What do I need to do in order for the:
1/ field validations to execute first
2/ run the agent
4/ close-open URL
Whats the @commands order of execution? I realise that RunAgent executes immediately, @Postedcommand executed last!