Document Management

Document Management functions provide elements that help you navigate document associations. You can use the following functions on the existing pre-commit triggers.

This page discusses:

GetAttachedDocs

This function allows you to retrieve the list of documents attached to a reference using the Attach Document command in the desktop app.

Signature

GetAttachedDocs (): List

ReturnType

List

Example

let connectedDocs (List)
// Connected Docs to a Reference
connectedDocs = ThisObject.GetAttachedDocs ()

GetFileCount

This function allows you to obtain the number of files attached to a document.

Signature

GetFileCount (): Integer

ReturnType

Integer

Example

let filecount(Integer)
let doc (Document)
//….retrieve existing Document object or create new Document object
filecount = doc.GetFileCount() 
Trace(1, "TRACE Number of files attached to document filecount  = #", filecount)