| Contents: | Main | Chapter | See Also: | Getting Started Manual | Advanced User Manual | |||
A trigger causes something else to happen. In VA FileMan, you can set up a trigger so that the entry of data in one field automatically updates a second field value. Since a trigger is considered a type of cross-reference on the field for which data is entered, a trigger is logically created under the Cross-Reference A Field [DIXREF] option located on the Utility Functions [DIUTILITY] menu.
To understand how a trigger is set up, you must first understand that every cross-reference specification describes both:
In other words, when patient FMPATIENT,ONE is first entered into a file of patients, a FMPATIENT,ONE regular cross-reference on the name is built (and nothing is deleted). Then, when this name is edited (changed) to be FMPATIENT,TWO Q, the following two things happen:
Finally, when this patient is deleted from the file, the FMPATIENT,TWO Q cross-reference is deleted (and none is created).
When you are using the Cross-Reference A Field [DIXREF] option and you specify a trigger, you must identify both what happens when a new field value is entered (either initially or through an edit on an existing value) and when an old value is changed or deleted.
You must be careful in setting up any trigger cross-reference, since unexpected effects can sometimes result. When the trigger occurs:
Reviewed/Updated: May 2026