Hi,
I created a “Submit” button with :
@Command([FileSave]);
@Command([ToolsRunMacro]; “Account Update”);
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])
Somehow it always skips the first @Command([FileSave]) and execute the agent first .
The reason I know that is, if I split into two buttons , one “Submit” with just:
@Command([FileSave]);
@Command([FileCloseWindow])
and another button that will be executed after the Submit with :
@Command([ToolsRunMacro]; “Account Update”);
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])
Then it works as design .
What should I do to force the web form to save first then run the agent on my Submit button ?
I am desperate for any helps, suggestions . Many many thanks in advance .
Hung Tran
tranh@us.ibm.com
Subject: @Command order of execution for Web form
You are using commands not all designed for the web.
Move your
@Command([ToolsRunMacro]; “Account Update”)
to the WebQuerySave event.
Subject: RE: @Command order of execution for Web form
I really appreciate your response …
Please clarify :
For the Submit button , do I just have :
@Command([FileSave]);
@Command([FileCloseWindow]);
and on the WebQuerySave :
@Command([ToolsRunMacro]; “Account Update”)
How does it work ? Does it save the document then run the agent or run the agent first then save the document ? Because I did set up the Submit with just the two Save and CloseWindow commands and the WebQuerySave with the agent , and it is not working the same if I split into 2 buttons like I mentioned before . Please help.
Really appreciate your suggestion/help . Thanks.
Subject: RE: @Command order of execution for Web form
Thanks. I found the problem. Your suggestion was very helpful . The problem was not related to the agent . Thank again for your help.