Agent Issue: Keeps Prompting with @Prompt

Hello all, if anyone has any quick fixes, much appreciated.

I have an agent setup to be ran manually when someone selects documents in a view. The coding in the agent is below.

The problem is that if you select 100 or so documents and choose to run the agent, the @prompt keeps coming up for each document that is selected.

This is probably working as designed and probably has something to do with the UI perhaps? Any suggestions from anyone? I’ll keep looking along and continue my search in this forum.

Thanks.


SELECT @All;

year := @Prompt([OkCancelEdit]; “What year”; “What year should these be counted in? <please enter as a 4 digit year ie 2004>”; “2004”);

FIELD JobStat := “filled”;

FIELD JobFillYr := year;


Subject: Thank you…

Thanks Chris and Benpoole. Hadn’t come across that yet.

Thank you again.

Subject: This has been covered before…

… but in case you haven’t found it yet - essentially you need two agents:

  1. Prompt the user and get the value; Run once style - after you store the value (however you choose) call agent 2:

  2. Use the value against all selected documents.

ergo One prompt, many documents changed…

C>

Subject: Agent Issue: Keeps Prompting with @Prompt

Do as Chris says: two agents sharing data via the Notes.ini file, or just code one agent in Lotusscript which will do it all.