Solved

Set values on documents using an agent...

Posted on 2002-06-07
3
220 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn 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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now