We are using dynamic constraint list with the id and name combination. After packet creation if any name change with respctive id and system trying to update existing packet. integrity violation error is coming. Is there any way to differentiate label and value in list
Please first provide the name (and ideally link to) the addon you are using for the dynamic constraint list functionality. Since this is not a standard functionality of Alfresco, it is provided by some addon and in order to respond to the question we need to know which one, as they may have different implementations.
Thanks Axel ,
We are using ListOfValuesConstraint (Alfresco Data Model API)
That type of constraint is not a "dynamic" constraint list. It is just a simple, predefined constraint list. And yes, it differentiates between label and value - the label is maintained via localisation of the model. You can see an example in the BPM Model localisation files.
Thank You Axel. This is very helpful. Our dropdown values(ID -Name ) is changing frequently. Could you please suggest some good dynamic constraint list functionality.
So far I haven't seen "good" functionalities yet. A quick search via Google returns various results, and even a meta list of 5 addons.
With frequently changing drop down values you should be really careful about setting this up as a "constraint". If your list e.g. only includes the "currently selectable" values for UI convenience, then this may result in existing data becoming invalid and causing validation issues if old entries need to be touched again, as their old value may no longer be contained in the list.
I have been using this one with success for years now GitHub - dgcloud/alfresco-value-assistance: Configurable value assistance module for Alfresco Share ...
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.