This chapter illustrates a number of sample agents. These agents demonstrate how an agent can be used to create a report or modify data. These agents can be incorporated into almost any Lotus Notes database. Each technique is self-contained and designed to run independently. This enables you to copy the code into any existing application and implement it with little to no modification.
The intent of this chapter is to provide common customizations that can be added to any database. However, when adding a LotusScript enhancement to an existing application, you may need to replace field names or search strings or remove duplicate code linessuch as declaration (DIM) statements.
Customizations include the following:
Simple action agent to modify all documents
LotusScript agent to modify all documents containing a specific value
LotusScript agent to manually generate an email report
LotusScript scheduled agent to send a daily, weekly, or monthly email report