Description: Sample groovy script to make any or all of the document attributes non-editable on the 'Upload' and 'Edit Attributes' screen
The following sample Groovy script will make the 'Rev' standard attribute and 'PROJECT COST' custom attribute fields non-editable in the 'Upload Document' and 'Edit Attributes' screens. For custom attributes, the user needs to pass the attribute name itself instead of IDocumentAttribute.REV.
Setting values to attributes is not supported for the On-Load Edit Attribute event; it is only supported in the On-Load Upload event.
Supported standard attributes of document:
IDocumentAttribute.DOC_REF
IDocumentAttribute.REV
IDocumentAttribute.DOC_TITLE
IDocumentAttribute.POI
IDocumentAttribute.STATUS
IDocumentAttribute.DOC_PRIVACY
IDocumentAttribute.REV_NOTES
IDocumentAttribute.ATTACH_FILE
Context: Document
Remark: Accessible in 'On-Load' task mode only
Script:
|