Description: Sample groovy script to make any or all of the document attributes non-editable on 'Upload' and 'Edit Attributes' screen
Below sample groovy script will make 'Rev' standard attribute and 'PROJECT COST' custom attribute non-editable in 'Upload Document' and 'Edit Attribute' screens. For custom attributes, user needs to pass attribute name itself instead of IDocumentAttribute.REV.
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:
|