TXFAJavaScriptSession.Rollback
Unit: HPDFXFAEventScript
Declaration
procedure Rollback(Position: Integer);
Behaviour
Truncates the committed journal back to Position and marks the engine for rebuilding before the next evaluation
Restores arbitrary script-object lexical and closure state by replaying events rather than serialising a chosen 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 on its own runs no scripts and triggers no external callbacks
Related APIs
TXFAJavaScriptSession, HPDFXFAExecuteJavaScriptEvent and Interactive Dynamic XFA Widget Runtime