TXFAJavaScriptSession.Rollback

Unit: HPDFXFAEventScript

Declaration

procedure Rollback(Position: Integer);

Behavior

Truncates the committed journal to Position and marks the engine for reconstruction before the next evaluation

Restores arbitrary script-object lexical and closure state by replay rather than serializing a selected set of JSON variables

Immutable references previously returned by ReplaySince remain usable through this session; rollback does not reuse their identifiers or discard their backing script/result storage

Invalid positions raise EHPDFXFAError; rollback itself does not execute scripts or external callbacks

Related APIs

TXFAJavaScriptSession, HPDFXFAExecuteJavaScriptEvent and Interactive Dynamic XFA Widget Runtime