Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Set values on documents using an agent...

Posted on 2002-06-07
3
Medium Priority
?
227 Views
Last Modified: 2013-12-18
Hi experts,

I want to use an @formula based agent to set a value in a field of all the documents in a view.
This value must be entered by the user once and put on all the document within the view. When I create a agent that run on all the documents in the view, the agent will ask for every document the value that must be entered.

Is there a trick to do this, so the value must be entered once ?

Greetings,

Bob
0
Comment
Question by:oosterbaan
  • 2
3 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 7062326
For that you have to write two agents

One agent (with Run Once option) will get the value from the user and set it in a environment variable
eg:
Environment Dummy := @Prompt([okcanceledit]; ""; ""; "");
@Command([ToolsRunMacro]; "Second Agent")

Then run the second agent (which runs on all/selected docs) by picking up this environment variable
eg:
FIELD X := @Environment("Dummy); ""

When you start the first agent it will run second agent in the sequence

~Hemanth
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 200 total points
ID: 7062339
There is a typo (missing quote) in my second agent code, it should be
FIELD X := @Environment("Dummy"); ""
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 7062500
Thanks HemanthaKumar,

Really great solution... I didn't used two agents, but did set the environment variable in a action button and then called the agent....

Thanks again...

Greetings,

Bob
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question