Create a Last Updated By Field

Often, a document will contain a field to track the last person who modified the document. This enables users to determine who last updated the document.

How It Works

To automatically store the name of the person who last updated the document, create a computed field on the form. Then use the @IsDocBeingSaved function to determine whether the document is being saved from the Lotus Notes user interface. If the document is being saved, store the name of the user who issued the save command. Otherwise, the formula returns the current value for the field.

Implementation

To implement this solution, create a computed field on the form and insert the following formula in the Programmer's pane.

result := @If (@IsDocBeingSaved;
 @Name([Abbreviate];
 @UserName); @ThisName);
result

Tip

Lotus Notes automatically updates the $UpdatedBy field with a running list of user IDs that have saved the document. This field is automatically generated for documents but is not automatically displayed on the document. You may want to consider adding this field to the form design for supplemental information purposes. Simply create a computed text field called $UpdatedBy. Select Allow multiple values in the field properties dialog and set the value formula to @ThisName.


Create a Last Modified On Date Stamp

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