Saturday, May 5, 2007

Run agents onserver with a toolbar button

This is mostly borrowed code/design elements from a colleague of mine, Kjetil Grødem (sorry Kjetil).

The functionality I've added is using environment variables to remember which agent was last run, to save time when developing new agents to run on server. I've also made the formula needed to have the "runonserver" accessible from the toolbar in Lotus Notes, both of which were no major tasks.. :)

Demo-db with the subform and agent needed:
>> Download

Formula for toolbar-button:
@Command( [FileOpenDatabase]; "server": "dbpath");
dbpath=path to database that the aos-agent/subform lies