Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Prevent Agents running in Templates

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#AgentsInTemplates or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/AgentsInTemplates


When you have many databases using the same template and having agents, we use to prohibit design refresh of the agent, to prevent execution of the agent in the template. Now we just add some code.





 

Set s = New notessession
Set db = s.currentdatabase

'if this is a template then exit now
If db.templatename <> "" Then
 Print "Agent is in a template"
 End
End If

 

Warning: if the agent normally runs in a database with a tempate and you temporarily remove the template information for whatever reason, the agent will not run.

 

 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 |