Description: Finds runs that use the specified inactive material charge and currently have the In definition - OK status, then changes them to In definition - Not OK.
Calling convention: CIP_RaceLab_Call_UpdateRunsStatusForInactiveCharge("MaterialChargeID": Integer): Integer
Parameters:
MaterialChargeID: database identifier of the inactive material charge to check.
Returns: Number of run records updated; 0 when no matching run exists or the argument is invalid. Configuration and SQL errors may raise exceptions.
Availability: Conditional: available only in builds compiled with CIP_RACELAB. Requires write access and the RaceLab/Chemspeed configuration.
Example:
UpdatedCount := CIP_RaceLab_Call_UpdateRunsStatusForInactiveCharge(MaterialChargeID);