SetDocumentType
The action assigns a Document Type to the current Document object of the Document Hierarchy.
Syntax
bool SetDocumentType (StrParam)Parameters
The value you want to assign as the Document object's Type property.You can also designate a field in a Page object's Data file, and use its text value to set the Document Type. Simply enter the name of a valid Field object and surround it with single quotes. For example: 'Number'.
Returns
False if there are no Document objects in the Data file, or if the parameter is invalid. Otherwise, True.Level
Document, Page, and Field levels.Details
Similar to the SetDCOType action but works at the Document, Page or Field level.The action assigns the Document Type you enter as a parameter to the current Document object of the Document Hierarchy. You can also use a Field object's value to set the Document Type. (Refer to the Parameter section.)
- Example:
SetDocumentType('Number')\ or SetDocumentType(Invoice_Document)