Link to home
Start Free TrialLog in
Avatar of Glacieruk
Glacieruk

asked on

Selecting documents in LotusScript / Notes Formula

I have an agent "a" that creates a document in a view.
I have another agent "b" that runs on selected documents in the view.
What i want to do is make a button to run agent "a" to create a document and then run agent "b" on the document created.
I have created a button to run agent "a" then agent "b". But when the document is created by agent "a" it is not selected, so agent "b" will run on whatever document is currently selected and not the required new document.
I need to be able to select or set focus on the document created so that agent "b" can run on it. Does anybody know how to select the required new document?
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scottrma
scottrma

There isn't really an easy way to do this. The best thing to do would be to consolidate the code from your two agents into a single agent.
Good idea Hemanth! Didn't think of that. But it still would probably be cleaner from a design perspective to have all the code in one agent, but that's just my opinion....

Cheers,

Scott
Yeah right Scott, I hope Glacieruk would have thought about that. There should be something holding him up with two agents design.

By the way Scott, what is rma at the end of your id ?

R is my middle initial. Ma is my last name (it's a fairly common Chinese last name).

Cheers,

Scott