From Dwayne Wright PMP
Certified FileMaker Developer
Please Note: If you are viewing this page in a news feeder, the images may get munged up a bit. For the best experience, please visit the journal directly by clicking (here).
Revert Record / Request
A seldom used script step that reverts the record back to its original unsaved state, sans any new data entry done. The key here is that the record will only revert back to its state before being committed. It does not allow you to roll back a record to previously saved states.
One other thing to note is that a record that has not been committed, also has not committed any changes to related data. So when you use the revert command, it will also revert any changes you made in a related record or new related records created in a portal! There is one option to perform the script step with or without a dialog box.
BTW: Commit Record Explained
When a FileMaker record is created or edited, it needs to be committed in order for that change to stick. Typically, the commit process is done when the user exits the record, clicks outside of a field or hits the record entry key on the keyboard. The process of committing record changes comes more into play in scripting processes, web interfaces to data and multiple user record locking issues.
More info about the author and FileMaker in general, contact me at email@example.com.
© 2008 - Dwayne Wright - dwaynewright.com
The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.