Class DocumentSortingColumn
¶
Represents a column by which document results are sorted when accessing the content of the system archive.
var api = new TVS.Api();
api.login('username', 'password').then(function() {
// query archive
return api.queryArchive(
{}, // query arguments
null, null, // date range
0, 25, // page and page size
DocumentSortingColumn.ApplicantName,
SortingDirection.Ascending
);
}).then(function(archive) {
for (var i = 0; i < archive.Documents.length; i++) {
console.log(
i, ':',
archive.Documents[i].getDocumentTypeDisplay(),
archive.Documents[i].getFullname(),
archive.Documents[i].getStatusDisplay()
);
}
});
See also
Archive for more information on accessing the system archive.
Result Sorting for more information on sorting archive results.
- class DocumentSortingColumn()¶
Represents a column by which documents are sorted when accessing the archive.
Constant Properties
- DocumentSortingColumn.ApplicantName¶
Documents are sorted by name of the applicant.
- DocumentSortingColumn.DocumentType¶
Documents are sorted by the type of document.
- DocumentSortingColumn.ScanDate¶
Documents are sorted by the data at which documents were scanned or created.