<?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: Using page providers in Web UI in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321881#M8882</link>
    <description>&lt;P&gt;You must forget about &lt;CODE&gt;Query Parameters&lt;/CODE&gt; (`#{currentDocument} is a JSF notion).&lt;/P&gt;
&lt;P&gt;Remove &lt;CODE&gt;ecm:parentId = ?&lt;/CODE&gt; clause from the filter.&lt;/P&gt;
&lt;P&gt;Define a predicate on &lt;CODE&gt;system:parentId&lt;/CODE&gt; with &lt;CODE&gt;=&lt;/CODE&gt; operator (It should result in something like &lt;CODE&gt;ecm:parentId = (system_parentId)&lt;/CODE&gt;. Your page provider will now have a &lt;CODE&gt;system_parentId&lt;/CODE&gt; named parameter.&lt;/P&gt;
&lt;P&gt;Then client side, you can set this named parameter &lt;CODE&gt;'{"system_parentId" : document.uid}'&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 18:03:29 GMT</pubDate>
    <dc:creator>Guillaume_Renar</dc:creator>
    <dc:date>2018-01-17T18:03:29Z</dc:date>
    <item>
      <title>Using page providers in Web UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321880#M8881</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;A newbie question: how can I pass parameters to NXQL request of a Page Provider via WebUI Designer ?&lt;/P&gt;
&lt;P&gt;I'm trying to create a customized content view for a Folderish document. I created a Page Provider in Nuxeo Studio Modeler as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PP Definition"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1909i225F4C9B7CF999E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="PP Definition" alt="PP Definition" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I've added this PageProvider to the view layout of a document:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="View Layout Configuration"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1911iA568FD5B6A4357B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="View Layout Configuration" alt="View Layout Configuration" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Apparently the "Query Parameters" field from Modeler is ignored in WebUI. So what I've tried was to pass a parameter from Layout configuration (I've put [[document.properties.ecm:uuid]] in the params field), but as you can see on the screenshot - I can't access ecm properties of the file from Designer.&lt;/P&gt;
&lt;P&gt;Any suggestions on what I should do ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:49:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321880#M8881</guid>
      <dc:creator>Sergey_Zakharen</dc:creator>
      <dc:date>2018-01-17T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using page providers in Web UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321881#M8882</link>
      <description>&lt;P&gt;You must forget about &lt;CODE&gt;Query Parameters&lt;/CODE&gt; (`#{currentDocument} is a JSF notion).&lt;/P&gt;
&lt;P&gt;Remove &lt;CODE&gt;ecm:parentId = ?&lt;/CODE&gt; clause from the filter.&lt;/P&gt;
&lt;P&gt;Define a predicate on &lt;CODE&gt;system:parentId&lt;/CODE&gt; with &lt;CODE&gt;=&lt;/CODE&gt; operator (It should result in something like &lt;CODE&gt;ecm:parentId = (system_parentId)&lt;/CODE&gt;. Your page provider will now have a &lt;CODE&gt;system_parentId&lt;/CODE&gt; named parameter.&lt;/P&gt;
&lt;P&gt;Then client side, you can set this named parameter &lt;CODE&gt;'{"system_parentId" : document.uid}'&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 18:03:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321881#M8882</guid>
      <dc:creator>Guillaume_Renar</dc:creator>
      <dc:date>2018-01-17T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using page providers in Web UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321882#M8883</link>
      <description>&lt;P&gt;Thank you grenard, you save my day second time in a row!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 18:09:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321882#M8883</guid>
      <dc:creator>Sergey_Zakharen</dc:creator>
      <dc:date>2018-01-17T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using page providers in Web UI</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321883#M8884</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 14:44:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-page-providers-in-web-ui/m-p/321883#M8884</guid>
      <dc:creator>Sergey_Zakharen</dc:creator>
      <dc:date>2018-01-18T14:44:46Z</dc:date>
    </item>
  </channel>
</rss>

