This chapter provides a number of LotusScript functions and subroutines that can be incorporated into a Lotus Notes database. Each module is for the most part self-contained and designed to run with minimal modifications. This enables you to copy the code into any existing application and implement it.
The intent of this chapter is to provide common customizations that can be added to any database application. Each customization includes a functional summary, an explanation regarding how the code works, and detailed instructions for installing the code. This means that each code section will run with no additional code required.
However, when adding code to an existing application, you may need to replace field names, search strings, or remove duplicate code linessuch as declaration (or DIM) statementswhen implementing a LotusScript customization. It's also important to note that these functions and subroutines are intended to illustrate one way to solve a particular problem. As with all programming, there may be other ways to achieve the same result. In short, these modules are intended to be framework models to be incorporated into applications. Customizations include the following:
Note to readers: This chapter does not describe the various LotusScript classes (e.g., NotesDocument, NotesSession, NotesUIWorkspace, etc.). Readers should review Chapter 6, "An Introduction to LotusScript," for an introduction to the language and refer to the Designer help manual, which is included with the Lotus Domino Designer install package, for additional information pertaining to classes.
A working example of all customizations can be found in the developer's toolbox in the BookCodeLibrary.NSF database. See Appendix A for additional information.
An Introduction to the Lotus Domino Tool Suite
Getting Started with Designer
Navigating the Domino Designer Workspace
Domino Design Elements
An Introduction to Formula Language
An Introduction to LotusScript
Fundamentals of a Notes Application
Reference Library Applications
Design Enhancements Using LotusScript
Design Enhancements Using Formula Language
Miscellaneous Enhancements and Tips for Domino Databases
Application Deployment and Maintenance
Appendix A. Online Project Files and Sample Applications
Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?