Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modifying document with both formula and agent

Status
Not open for further replies.

IG3Rosen

IS-IT--Management
Jan 5, 2005
40
FR
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:
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







 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top