Calling convention: CIP_SetCustomEntryForFlexRecordItem("ObjectName":String,RecordID:Integer,DoRecalc:Boolean,"AttributeName":String,"CustomEntryName":String, Value:Variant): Integer
Description: Loads a record of a flexible object, sets a custom-entry value on the selected FlexRecord item, optionally recalculates the record, and saves it. An empty AttributeName applies the value to every FlexRecord item that contains the custom entry.
Parameters:
ObjectName = Name of the target flexible object.
RecordID = ID of the target record.
DoRecalc = True to recalculate the record before saving; False to save without recalculation.
AttributeName = Name of the attribute item to modify, or an empty string to modify all applicable items.
CustomEntryName = Entry name of the custom field to set.
Value = Variant value to assign.
Returns: Integer: the saved RecordID. The temporary flexible-record instance is released safely if construction, loading, recalculation or saving raises an exception.
Availability: Default.
Example:
CIP_SetCustomEntryForFlexRecordItem("DynObjectTest", 6, True, "", "Comment", DateTimeToStr(Now()));