Vous êtes ici: Help Topics > Customization > Calculation > DOCNUM Function

DOCNUM Function

The DOCNUM function returns the document number of the current CaseView document or a specified CaseView document.

Syntax

DOCNUM(document identifier, distributor ID)

Example 1

DOCNUM()

If 1.1 is the document number of the current CaseView document, this function returns 1.1. When using this function it is best to use an alphanumeric cell so that any decimal places in the number display correctly.

Example 2

DOCNUM("FS")

The first optional parameter identifier is used to return the document manager number for the first CaseView document found with the given identifier. For example, if the document 1.1 in the Working Papers Document Manager was a CaseView document with the identifier "FS", the calculation DOCNUM("FS") will return 1.1.

Example 3

DOCNUM("FS","CWCW")

If there are two documents in the Working Papers Document Manager with the identifier "FS" then the distributor ID can be used as a second parameter to differentiate between them and return the correct document number.

Related Topics