The DocType object represents the document type assigned to the current document. It is injected in document events as DocumentType and can also be obtained with ChronoDocument.GetDocumentType.
Methods
Returns
Method
Description
string
GetStatus
()
Returns the status of the document type (Enterprise: validated or not).
short
RenameType
(string NewName)
Renames a document type
Parameters
NewName (string): The new name for the type
Example
Call Doctype.RenameType("My new type name")
short
SetFieldDefaultValueForType
(string field, string value)
Set default field value for this type. These values will be set when the Document Type is assigned or manually set to a document.
Parameters
field (string): Name of the field
value (string): Value for the field when this type is set.