Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Enable Agent without using Designer Client

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#SignEnableAgent or http://www.notesninjas.com/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.

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes 5 All-in-one Certification Exam Guide by Libby Schwarz, Ben Malekzadeh
Sort out your CLP with this book.
See at: Amazon.co.uk | Amazon.com |