Solved

Set values on documents using an agent...

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
  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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

816 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

13 Experts available now in Live!

Get 1:1 Help Now