Depending on database design changes, you may need to refresh all documents stored in the database for the change to be applied. For example, say a new computed field is added to the form. For the change to be visible, each document in the database needs to be opened and saved. This routine illustrates how to create an agent that automatically refreshes all documents in the database.
Using the ToolsRefreshAllDocs command, every document in the database can be refreshed and saved.
To implement this solution, perform the following steps.
From the Domino Designer, open the database and select the Create > Design > Agent menu options. Name the agent Refresh all data (see Figure 18.13). Because this agent will affect every document in the database, consider changing the agent from Shared to Private. When this option is selected, only the author of the agent will have the ability to see the agent from the Actions menu.
Figure 18.13. Property settings for a private agent
Change the Language Selector from Simple action to Formula and insert the following in the Programmers pane.
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?
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
Authors: Mark Elliott
Similar book on Amazon
XPages Portable Command Guide: A Compact Resource to XPages Application Development and the XSP Language
Lean Six Sigma for Service : How to Use Lean Speed and Six Sigma Quality to Improve Services and Transactions