MODIFY Function (RecordRef)
Modifies a record in a C/SIDE table.
[Ok :=] RecordRef.MODIFY([RunTrigger])
Parameters
- RecordRef
-
Type: RecordRef
The recordref that identifies the record that you want to change.
- RunTrigger
-
Type: Boolean
Specifies whether to run the C/AL code in the OnModify Trigger trigger.
If this parameter is true then the code will be executed. If this parameter is false (default) then the code will not be executed.
Select the record that you want to replace by using the primary key fields. The record's current key and filters do not affect the operation.
In multi-user environments, another application could modify the record between the time you read the record and when you attempt to modify it. The C/SIDE Database Management System (DBMS) automatically watches for this and, if a conflict occurs, cancels the MODIFY function and displays an error message.
This function works the same as the MODIFY Function (Record).