Monday, September 03, 2007

Enable agent

When creating templates for users, they need to sign the agents. This is the easiest way of getting the agent enabled.

In the [Admin] read only set up area put in a button with code:

agentName:="AgentName";
@if( @IsAgentEnabled(ag)="0"; @Command( [AgentEnableDisable] ; ag ; "1");
""

This will enable it, you can even have a form with saveoptions="0" which displays the status of each relevant agent in computed for display fields when composed.

You could do this in lotusscript but why would you if there are @functions available?

If you add buttons that also display the agent's lastrun time this could be used to view a status of all relevant agents.

1 comment :

vinay chilakamarri said...

Excellent and very timely tip. Thank you!