Calling convention: CIP_SetValueByDataID("TargetObjectName": String, "TargetEntryName": String, TargetDataID: Integer, NewValue: Variant, DoRecalc: Boolean = True): Integer
Description: Changes an entry value in the record identified by DATA_ID. A non-visible record is loaded into a temporary DBForm and saved; a currently visible record is changed in memory and its components are refreshed.
Parameters:
TargetObjectName: name of the target object.
TargetEntryName: name of the entry to change.
TargetDataID: DATA_ID of the target record.
NewValue: new Variant value.
DoRecalc: when True, recalculates after changing the value; defaults to True.
Returns: Integer: DATA_ID of the loaded or visible target record.
Availability: Default.
Example:
UpdatedID := CIP_SetValueByDataID("Machine", "Status", 125, 2, True);