Description: Resolves all runs assigned to a launch and updates each run to the specified status.
Calling convention: CIP_RaceLab_UpdateRunStatusByLaunchID("LaunchID": Integer, "StatusToSet": String): NULL
Parameters:
LaunchID: database identifier of the launch.
StatusToSet: exact selection text from the configured run-status select list.
Returns: Always Variant NULL. An unknown status, configuration problem or SQL error may raise an exception; individual updates are not wrapped in one transaction.
Availability: Conditional: available only in builds compiled with CIP_RACELAB. Requires write access and the RaceLab/Chemspeed configuration.
Example:
CIP_RaceLab_UpdateRunStatusByLaunchID(LaunchID, "Selected for XML");