evCreate API 5.7 Help

BeginTransaction

Starts recording a sequence of multiple atomic edit operations to the edit history of the current Envision document editing session in the Canvas Envision Creator app as a single edit transaction.

BeginTransaction(): Promise<void>

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the recording of the sequence of atomic edit operations to the edit history of the current Envision document editing session as the single edit transaction has been successfully started.

Discussion

A started edit transaction recording must be finalized with the EndTransaction(): Promise<void> function for correct undo/redo behavior.

Multiple atomic edit operations recorded in the edit history as a single edit transaction are treated as a whole and undone or redone in a single call of the Undo(): Promise<void> and Redo(): Promise<void> functions.

29 April 2025