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

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

Related APIs

TXFAJavaScriptSession, HPDFXFAExecuteJavaScriptEvent and Interactive Dynamic XFA Widget Runtime