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
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