Display an Are You Sure? Message

Create a Last Modified On Date Stamp

This section describes how to create a field to track the date of the last document modification. When implemented, the current date (and optionally time) is automatically stored in the specified field.

How It Works

A computed field on the document is automatically updated every time the document is saved.

Implementation

To implement this solution, create a computed field on a form. In the properties dialog, set the field type to Date/Time and Computed on tab 1. By default, the field properties will display only the time, so to display the date and time in the field, switch to tab 2 and select both the date and time options (see Figure 14.9).

Figure 14.9. Date and time property settings dialog

After the field properties are set, add the following formula in the Programmer's pane.

result := @If (@IsDocBeingSaved;
 @Now;
 @ThisName);
result



Format a User s Name

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

Calendar Applications

Collaborative Applications

Reference Library Applications

Workflow Applications

Web Applications

Design Enhancements Using LotusScript

Design Enhancements Using Formula Language

View Enhancements

Sample Agents

Miscellaneous Enhancements and Tips for Domino Databases

Data Management

Security

Application Deployment and Maintenance

Troubleshooting

Appendix A. Online Project Files and Sample Applications

Appendix B. IBM® Lotus® Notes® and Domino®Whats Next?



Lotus Notes Developer's Toolbox(c) Tips for Rapid and Successful Deployment
Lotus Notes Developers Toolbox: Tips for Rapid and Successful Deployment
ISBN: 0132214482
EAN: 2147483647
Year: N/A
Pages: 293
Authors: Mark Elliott

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net