Detecting When a Field in a Browse Has Changed

Description

Steps involved in detecting when a field in a browse has changed:

  1. Display the Tables/Sets tab of the Control Panel.

  2. Select the table that contains the field(s) that you want to monitor.

  3. Select Design > Field Rules.

  4. Display the Events tab.

  5. Select "OnWroteField" from the Events list box.

  6. Select the field of interest from the list box in the upper left corner of the screen.

  7. Place the following code (with your modifications) into the editor window.

    valinit = this.field_get().initial_value_get()
    valfinal = this.field_get().value_get()
    IF (valinit <> valfinal) THEN
        'Field changed
    ELSE
        'Field did not change
    END IF

See Also