THPDFJavaScriptEvaluationResult Record

Outcome of a safe form-field JavaScript evaluation: executed and accepted flags, resulting value, operation count, error text, elapsed time and value size

Declaration

THPDFJavaScriptEvaluationResult= record
  Executed: boolean;
  Accepted: boolean;
  Value: AnsiString;
  OperationCount: Integer;
  ErrorText: AnsiString;
  ElapsedMilliseconds: Cardinal;
  ValueBytes: Int64;
end;

Unit

HPDFDoc

Fields

FieldPurpose
Executedtrue when a JavaScript action attached to the field trigger really ran in the safe interpreter
Acceptedtrue when the sandbox accepted the script's result; rejected results must never be written back to the field
ValueField value after the run: the interpreter output when accepted, otherwise the input value that went in
OperationCountInterpreter operations used up by the script, against the configured script budget
ErrorTextFailure description, for example that the field trigger carries no JavaScript action, or else the sandbox's error message
ElapsedMillisecondsWall-clock time taken by the evaluation
ValueBytesByte length of the resulting value, measured against the output-size budget

Usage notes

Related APIs