CommitChanges
The CommitChanges function is used in
connection with the GetByFilter and GetByKey functions
to force updates in a database.
Using CommitChanges with the GetByFilter and GetByKey functions
The GetByFilter function retrieves
data items from a data type using a filter as the query condition.
The GetByKey function retrieves data items from a
data type using a key expression as the query condition.
When
data items are assigned to the built-in DataItem or OrgNode variable,
they are not immediately updated but are stored in a queue to optimize
the number of calls to the database. So, for example, if you update
multiple fields in the DataItems variable there will
only be one call to update the underlying database, when a function
call is made.
To force all queued updates, call the CommitChanges() function
in your policy.
Arguments
The CommitChanges() function
takes no arguments.