setValue

set a value to a measurement position

 

QCOrderMeasurement.setValue(DocEntry/i,SampleId/c,LineNumber2/i,Value/c)

 

With this function you can set the Measurement Value (Property MeasurementString) directly.

If you want to set a number, you can use a period or comma as decimal delimiter.

The system automatically uses the count of decimal places defined in UoM.

 

jbscript-logo-small

let DocEntry=1024;
let Sample=1;
let Position=10;
let result=bsl.get("QCOrderMeasurement/setValue(:DocEntry,:Sample,:Position,'5.123');
if (result.returnCode != 200)   alert("Release not possible: "+result.returnText);