Hi,
I have to upgrade, a button formula wich sets a author fields in a document.
The code I want to add is in a Agent.
So I inserted a @command([RunAgent]...) statement at the end of the button Formula code.
the problem is :
-The formula before my the @command([RunAgent ) statment sets the author field to another value as the current user.
and when the Agent execut itself, it cannot save the doc.
-when I put the statment wich modify the author field after the statment lanching the agent, the data modified by the agent isn't saved.
in summary:
I cant't wait, I will put all the code in the agent. But I'm curious to know why it doesnt' work.
thanks
I have to upgrade, a button formula wich sets a author fields in a document.
The code I want to add is in a Agent.
So I inserted a @command([RunAgent]...) statement at the end of the button Formula code.
the problem is :
-The formula before my the @command([RunAgent ) statment sets the author field to another value as the current user.
and when the Agent execut itself, it cannot save the doc.
-when I put the statment wich modify the author field after the statment lanching the agent, the data modified by the agent isn't saved.
in summary:
Code:
@something
@something
@command([RunAgent],"...") ( agent with a call doc.save statment)
@setField (blabal) ( the new author)
@command([FileSave])
I cant't wait, I will put all the code in the agent. But I'm curious to know why it doesnt' work.
thanks