Link to home
Start Free TrialLog in
Avatar of sridevi911
sridevi911

asked on

running an agent from a different database

Hi, I need to run an agent of a database from another database.

I mean, In database A i've a button in one of its view and when it is clicked, it should run an agent from database B.

Lets say I've an agent in Database B. The normal formula to run this is
@Command([ToolsRunMacro];"(agent)")

But I want to run this agent by clicking a button in Database A.

thanks
sri
SOLUTION
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

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 Andrea Ercolino
Andrea Ercolino

in Notes 6:

@Command( [FileOpenDatabase]; server : database );
@UpdateFormulaContext;
@Command( [RunAgent]; AgentName );
@Command([CloseWindow])
Avatar of sridevi911

ASKER

bozzie,

I get an error at the following :

Set otherdb = s.getdatabase( db.APPS01/SIVX , "apps2/cust.nsf" )

how do i specify the server part?


Raputa,
There are many users who have R5. so if the above only works on R6 then it would be a problem

thanks
Yes, my solution works only for at least Notes 6...
Then you should do as Bozzie4 said.
ASKER CERTIFIED SOLUTION
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
kalios.. works fine. thanks