<?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: Don&amp;apos;t display the input document in a nuxeo-document-suggestion in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327126#M14127</link>
    <description>&lt;P&gt;In the document suggestion element I have to declare page-provider = [[nxProvider]] right? It doesn't work&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 08:36:06 GMT</pubDate>
    <dc:creator>iker_nicolas</dc:creator>
    <dc:date>2019-11-07T08:36:06Z</dc:date>
    <item>
      <title>Don&amp;apos;t display the input document in a nuxeo-document-suggestion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327124#M14125</link>
      <description>&lt;P&gt;Hi, I'm trying to don't display the input document in a document-suggestion component, using the [[document.uid]] property inside the query in the Repository.Query operation, but nuxeo doesn't receive this uid.&lt;/P&gt;
&lt;P&gt;This is my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;		&amp;lt;nuxeo-document-suggestion operation="Document.Query"
                                   input = "[[document]]"
                                   params='{"query": "SELECT * FROM Item WHERE ecm:uuid != '[[document.uid]]'"}'
                                   label="[[i18n('label.relation.pickDocument')]]"
                                   value="{{path}}" 
                                   min-chars="0"
                                   result-formatter="[[myFormatter]]"
                                   selected-item="{{toDoc}}"&amp;gt;
       	&amp;lt;/nuxeo-document-suggestion&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If I insert the code instead of the document property the query works and the input document doesn't display.
Furthermore, if I show [[document.uid]]  in a normal div, nuxeo receive the id correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 07:23:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327124#M14125</guid>
      <dc:creator>iker_nicolas</dc:creator>
      <dc:date>2019-11-04T07:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Don&amp;apos;t display the input document in a nuxeo-document-suggestion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327125#M14126</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Create a page provider to list the document you need to search for, with a predicate linked to the &lt;CODE&gt;ecm:uuid&lt;/CODE&gt; propertty, with &lt;CODE&gt;!=&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;In your document suggestion element, use the &lt;CODE&gt;pageProvider&lt;/CODE&gt; attribute to point to the previous page provider&lt;/LI&gt;
&lt;LI&gt;In your document type layout, create a &lt;CODE&gt;nuxeo-page-provider&lt;/CODE&gt; element&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;nuxeo-page-provider id="nxProvider" provider="&amp;lt;YOUR_PAGE_PROVIDER&amp;gt;" params="[[_computeParams(document)]]" enrichers="thumbnail, permissions" schemas="dublincore,common,uid" page-size="20" headers="{"X-NXfetch.document": "properties", "X-NXtranslate.directoryEntry": "label"}" auto=""&amp;gt;&amp;lt;/nuxeo-page-provider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Add the following code in the polymer section&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE&gt;    _computeParams: function (document) {
	return document ? {system_uuid: this.document.uid} : {};
    },
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 21:02:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327125#M14126</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-11-04T21:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Don&amp;apos;t display the input document in a nuxeo-document-suggestion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327126#M14127</link>
      <description>&lt;P&gt;In the document suggestion element I have to declare page-provider = [[nxProvider]] right? It doesn't work&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 08:36:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327126#M14127</guid>
      <dc:creator>iker_nicolas</dc:creator>
      <dc:date>2019-11-07T08:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Don&amp;apos;t display the input document in a nuxeo-document-suggestion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327127#M14128</link>
      <description>&lt;P&gt;Try to add in the polymer section:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;ready: function() {
      this.nxProvider = this.$.nxProvider; 
    },
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Nov 2019 14:33:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327127#M14128</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2019-11-07T14:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Don&amp;apos;t display the input document in a nuxeo-document-suggestion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327128#M14129</link>
      <description>&lt;P&gt;It happens the next error&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 07:57:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/don-apos-t-display-the-input-document-in-a-nuxeo-document/m-p/327128#M14129</guid>
      <dc:creator>iker_nicolas</dc:creator>
      <dc:date>2019-11-08T07:57:06Z</dc:date>
    </item>
  </channel>
</rss>

