OnRecordCommit
Performs a script before a record that has been changed is
committed.
Actions that cause a record to be committed include:
•a user changes data in a record and moves to another record
•a user changes a record and immediately accesses the Manage Database dialog box
•a user presses the Enter key
•a user clicks the layout outside of the activated record after the record has been modified
•script steps that move
focus to a different record if the previous record was modified
When the script runs
Before the event has been processed.
Modes in which the trigger can be used
Browse and Find modes.
Result
You can use the
Exit Script script step within the triggered script to return True or False.
•True: The event that triggered the script proceeds.
•False: The event that triggered the script is canceled.
Compatibility
Where the script trigger is activated | Supported |
FileMaker Pro | Yes |
FileMaker Server | Yes |
FileMaker Go | Yes |
Custom Web Publishing | Yes |
FileMaker WebDirect | Yes |
Runtime solution | Yes |
Originated in
FileMaker Pro 10.0
Notes
•Moving from record to record inside a
portal does not cause a commit; those changed records are committed when the focus leaves the main record to which they are related.
•This trigger activates only when there are uncommitted record changes.
•Exiting a record that had keyboard focus activates this script trigger only when the record being exited was changed.
Related topics