03-11-2015 02:09 PM
Hello
I would like to only allow the creation of documents with a single dc title, but the user to enter metadata.I've tried to do a query, and then, delete the docuemnt, but I have a lot problems. What would be the best option?
03-26-2015 06:47 AM
Please clarify...Is your requirement to define a new folder type, say 'Unicity Folder', that ensures the names of its child documents (based on their titles) are unique?
03-26-2015 01:11 PM
Hello,
I'll try to explain better...
First, the user put his documents with their dc:title, whatever he wants, for instance A1. But, I want unique documents in my system , I mean documents that not have repited their dc:title.
So, I made automation chain which searching the same dc:title (with a Fetch Query) and.... if This.size()=0, create document; if not erase the document. But I had a lot of problems when I erased the document...
Any advice?
Thank you very much
03-28-2015 02:53 AM
You cannot reliably enforce uniqueness of child titles within a folder using an automation chain. This must be done at a much lower level in the system which includes adding a unique conditional database constraint on the hierarchy table parentid and name columns for VCS-based Nuxeo deployments. A DBS-based deployment has a dependency on a [Nuxeo Shared State Manager][1] being implemented.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.