DS Server

Javascript: TrackedChanges.getItems Method

Method

Description

Returns the current accept/reject states.

Syntax

<TrackedChange[]> TrackedChanges.getItems()

Return Value

Returns the current accept/reject states.

Examples

The following example demonstrates trackedchanges.getItems in a practical Document Viewer workflow. Get all tracked changes.

const decisions = TXDocumentViewer.trackedChanges.getItems();
const unresolved = decisions.filter(change => change.accept === null);
console.log("Unresolved tracked changes:", unresolved.length);