Solved

Set values on documents using an agent...

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

  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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

12 Experts available now in Live!

Get 1:1 Help Now