How to make dynamic metadata property based on value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2014 06:10 PM
I am working on a custom content model that has a property of document status. The allowed values are Pending, approved, paid, exported.
When a document is uploaded the document is automatically marked as pending and the user can mark it as approved.
There is a script that runs nightly that will export the metadata to a third party system and mark it as Exported.
My question is how can I make it so that a user can only mark the document as pending or approved But they can not change it after it has been marked as exported or paid.
Any answers will be much appreciated.
When a document is uploaded the document is automatically marked as pending and the user can mark it as approved.
There is a script that runs nightly that will export the metadata to a third party system and mark it as Exported.
My question is how can I make it so that a user can only mark the document as pending or approved But they can not change it after it has been marked as exported or paid.
Any answers will be much appreciated.
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2014 02:07 AM
You can create custom form control if you are using custom forms for editing metadata of document with your custom content type.
For that, you need to create one custom control "custom-selectone.ftl" which will be same as "selectone.ftl(/site-webscripts/org/alfresco/components/form/controls)" and you can put your custom control under shared/web-extension.
Now in you custom control you can change the display dropdown logic.
Hope this helps you.
Thanks,
For that, you need to create one custom control "custom-selectone.ftl" which will be same as "selectone.ftl(/site-webscripts/org/alfresco/components/form/controls)" and you can put your custom control under shared/web-extension.
Now in you custom control you can change the display dropdown logic.
Hope this helps you.
Thanks,
