09-26-2011 01:47 PM
Hello,
I'm trying to define a document schema for a document type that should have a relation with another type of document. Is this possible? Or maybe I am trying to do this the wrong way...
To make it more clear, I want the user to be able to create the document "Meeting" that will have a link to:
Thanks in advance for your time. I am open to any kind of suggestion on how I could to this. Cheers!
09-30-2011 07:28 AM
For the user field, you just have to create the schema that stores a string (if you want attach only one user) or a string list (for several). After you can use the same suggestion box widget we use for Right Management.
For two next fields, in fact we have the notion of relations into Nuxeo (see the "relation" tab on leaf document, like File, Note, ...).
Default predicates can be extended to add yours into the "predicates" directory and "inverse_predicates".
I think your problem, next, will be to include the relation field into the creation form. For that I suggest to use a template widget and add it to your layout. You can have a look how we create the the relation tab:
/nuxeo-platform-relations-web/src/main/resources/web/nuxeo.war/incl/tabs/document_relations.xhtml
Hope this will helps
09-30-2011 07:28 AM
For the user field, you just have to create the schema that stores a string (if you want attach only one user) or a string list (for several). After you can use the same suggestion box widget we use for Right Management.
For two next fields, in fact we have the notion of relations into Nuxeo (see the "relation" tab on leaf document, like File, Note, ...).
Default predicates can be extended to add yours into the "predicates" directory and "inverse_predicates".
I think your problem, next, will be to include the relation field into the creation form. For that I suggest to use a template widget and add it to your layout. You can have a look how we create the the relation tab:
/nuxeo-platform-relations-web/src/main/resources/web/nuxeo.war/incl/tabs/document_relations.xhtml
Hope this will helps
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.