06-22-2021 02:57 AM
Hi Team,
I have created one custom field named as Document_No using Model Manager.
I have requirement that this field should have value as total number of documents in that folder.
Ex. I have one folder which having 10 files and i uploaded one new file in that folder.
Once i uploads new file, Document_No property for that file should have value as 11
(Note - For each file this value should changed based on number of documents in respective folder)
Kindly suggest.
Thanks in advance
06-22-2021 04:23 AM
This is a case for implementing Java-based behaviours to automatically update a property value based on child association creation / deletion events. Unfortunately, implementing behaviours does not work well with models created via the Model Manager, as those models have some serious limitations (I consider Model Manager to be useful only for demonstration / dev prototyping use cases, and discourage any customer from using it in production).
06-22-2021 05:38 AM
Thanks Afaust for your quick reply.
can u please suggest how to implement Java-based behaviours.
Thank you
06-22-2021 08:41 AM
See the documentation and / or the tutorial of Jeff Potts for starters...
Explore our Alfresco products with the links below. Use labels to filter content by product module.