TXFAJavaScriptSession.Evaluate
Unit: HPDFXFAEventScript
Declaration
function Evaluate(const Script: string; const Limits: TXFAFormScriptLimits;
out OutputText, Diagnostic: string): Boolean;
Behavior
Executes JavaScript in the persistent engine and appends successful evaluations and returned results to the bounded journal
Returns True with OutputText after success, or False with Diagnostic on engine, replay or budget failure; a failed evaluation does not commit a journal entry
If rollback or a prior failed evaluation dirtied the engine, reconstructs it from committed evaluations before running the new script
Replay and new execution share Limits.MaxElapsedMilliseconds; an individual evaluation does not receive a fresh transaction deadline
Direct callers checkpoint before a multi-step transaction and call Rollback when later host validation or publication fails
Related APIs
TXFAJavaScriptSession, HPDFXFAExecuteJavaScriptEvent and Interactive Dynamic XFA Widget Runtime