<?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: How to access to a parent document data in a widget in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327166#M14167</link>
    <description>&lt;P&gt;#{documentManager.getDocument(document.getData().getParentRef()).getPropertyValue("dc:title")}&lt;/P&gt;
&lt;P&gt;Note that this won't handle the case where user does not have enough rights to access the parent.
And as you're in a result layout, there's a good chance that this is bad for perfs.&lt;/P&gt;
&lt;P&gt;An alternative (and more efficient) way of doing this would be to retrieve the property on the parent, and update it on the document, whenever it is created/moved.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 20:03:34 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2013-02-19T20:03:34Z</dc:date>
    <item>
      <title>How to access to a parent document data in a widget</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327162#M14163</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I currently make a table layout to display some search results.&lt;BR /&gt; /&amp;gt;
But in this results, I want to display metadata which can be find in a parent document of the one which is displayed.  How, in a widget, I can access to this data?&lt;BR /&gt; /&amp;gt;
I saw that it is possible to use a EL expression in a widget layout editor but i didn't find the good one.&lt;BR /&gt; /&amp;gt;
I managed to get the parent document Ref with this : #{document.getData().getParentRef().reference()} but I can't go further.&lt;/P&gt;
&lt;P&gt;Somebody can help me?&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 11:01:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327162#M14163</guid>
      <dc:creator>Flav_BARTHE</dc:creator>
      <dc:date>2013-02-07T11:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a parent document data in a widget</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327163#M14164</link>
      <description>&lt;P&gt;Ok, I find the good expression :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;" #{
(document.getData().getCoreSession().getDocument(document.getData().getParentRef())).getProperty("dc:title").getValue()
} " &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it isn't very friendly. Maybe someone knows something more easy?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 14:26:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327163#M14164</guid>
      <dc:creator>Flav_BARTHE</dc:creator>
      <dc:date>2013-02-07T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a parent document data in a widget</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327164#M14165</link>
      <description>&lt;P&gt;How did you get it to work?  On my side, It shows me a list of dc metadata (ie Nature&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:50:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327164#M14165</guid>
      <dc:creator>jmdavid_8121</dc:creator>
      <dc:date>2013-02-13T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a parent document data in a widget</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327165#M14166</link>
      <description>&lt;P&gt;Use a generic widget set his type to "text", Add a custom property in the widget editor, id&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 09:07:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327165#M14166</guid>
      <dc:creator>Flav_BARTHE</dc:creator>
      <dc:date>2013-02-14T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to access to a parent document data in a widget</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327166#M14167</link>
      <description>&lt;P&gt;#{documentManager.getDocument(document.getData().getParentRef()).getPropertyValue("dc:title")}&lt;/P&gt;
&lt;P&gt;Note that this won't handle the case where user does not have enough rights to access the parent.
And as you're in a result layout, there's a good chance that this is bad for perfs.&lt;/P&gt;
&lt;P&gt;An alternative (and more efficient) way of doing this would be to retrieve the property on the parent, and update it on the document, whenever it is created/moved.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 20:03:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-to-a-parent-document-data-in-a-widget/m-p/327166#M14167</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2013-02-19T20:03:34Z</dc:date>
    </item>
  </channel>
</rss>

