<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Definition of relation in schema in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/definition-of-relation-in-schema/m-p/322911#M9912</link>
    <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;For two next fields, in fact we have the notion of relations into Nuxeo (see the "relation" tab on leaf document, like File, Note, ...).&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/x/NoEk" target="test_blank"&gt;http://doc.nuxeo.com/x/NoEk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Default predicates can be extended to add yours into the "predicates" directory and "inverse_predicates".&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;/nuxeo-platform-relations-web/src/main/resources/web/nuxeo.war/incl/tabs/document_relations.xhtml&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Hope this will helps&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2011 11:28:40 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2011-09-30T11:28:40Z</dc:date>
    <item>
      <title>Definition of relation in schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/definition-of-relation-in-schema/m-p/322910#M9911</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;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...&lt;/P&gt;
&lt;P&gt;To make it more clear, I want the user to be able to create the document "Meeting" that will have a link to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a user&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;a previously created document, let's call it "Agenda"&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;there will be some other fields that the user will input data in. I was thinking that since I am declaring these fields in the schema, I could be able to also define a relationship to that previously created document.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance for your time. I am open to any kind of suggestion on how I could to this.
Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2011 17:47:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/definition-of-relation-in-schema/m-p/322910#M9911</guid>
      <dc:creator>elteo_</dc:creator>
      <dc:date>2011-09-26T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Definition of relation in schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/definition-of-relation-in-schema/m-p/322911#M9912</link>
      <description>&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;For two next fields, in fact we have the notion of relations into Nuxeo (see the "relation" tab on leaf document, like File, Note, ...).&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/x/NoEk" target="test_blank"&gt;http://doc.nuxeo.com/x/NoEk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Default predicates can be extended to add yours into the "predicates" directory and "inverse_predicates".&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;/nuxeo-platform-relations-web/src/main/resources/web/nuxeo.war/incl/tabs/document_relations.xhtml&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Hope this will helps&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2011 11:28:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/definition-of-relation-in-schema/m-p/322911#M9912</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2011-09-30T11:28:40Z</dc:date>
    </item>
  </channel>
</rss>

