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

Категории