< Back

Document Subject: Enable Agent without using Designer Client
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#SignEnableAgent or http://A555F9/nn.nsf/ByAlias/SignEnableAgent

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:

ag:="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.