Solved

Set values on documents using an agent...

Posted on 2002-06-07
3
225 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

622 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