Run Agent from Toolbar

I want to be able to run an agent from a customised toolbar button at any time. What I haven’t been able to work out is how to format the agent string in the @Command([ToolsRunMacro]) as I have to point to the server, database and agent. How do I format the string to point to the agent? Is this possible?

This is what I have tried:

@Command([ToolsRunMacro]; “server!!Database.nsf!!(HiddenAgent)”)

Subject: Run Agent from Toolbar

The @Command([ToolsRunMacro]) command is run in context of the current database. You can’t specify the database in which to run the agent. If you want a “universal” solution, You might try making the agent callable from a URL. Then create a toolbar button containing the @URLOpen() function to call the agent in the database you want.

Subject: RE: Run Agent from Toolbar

Not tried, but how about doing

@Command( [FileOpenDatabase]; “dbname”);

@Command([ToolsRunMacro]; “agentname”)

hth

Tony

Subject: RE: Run Agent from Toolbar

Thanks, I will give both a try and see which works best.

Cheers,

Peter