Saving your changes
About this task
After you create or edit a record, you should save your changes to the database.
Procedure
To save your changes to the database, follow these steps:
- Validate data in the record by calling the
Validatemethod of the Entity object.This method returns any validation errors so that you can fix them before you attempt to save your changes.
- Call the
Commitmethod of the Entity object.This method writes the changes to the database, ends the current action, and checks in the record so that it cannot be edited.