<?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 Adding a second parameter to a page provider in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/adding-a-second-parameter-to-a-page-provider/m-p/328230#M15231</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to modify the page provider used by the top search bar by adding a second parameter. I have followed the example in this post.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.nuxeo.com/general/q/cbd27e23ddc547058d3cc4bfb1f5658d/How-to-filter-in-the-Single-Multiple-Document-suggestion-widget-Documents-fetched"&gt;https://answers.nuxeo.com/general/q/cbd27e23ddc547058d3cc4bfb1f5658d/How-to-filter-in-the-Single-Multiple-Document-suggestion-widget-Documents-fetched&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The use case from the post is pretty much exactly what I want and I've tried replicating it, but I run into this error.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2020-07-07T16:42:07,985 WARN  [http-nio-0.0.0.0-8080-exec-10] [org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider] Failed to execute query: SELECT * FROM Document WHERE ecm:fulltext LIKE 'abs*%' AND ecm:isProxy = 0 AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH ", Syntax error: Invalid token &amp;lt;null&amp;gt; at offset -1
org.nuxeo.ecm.core.query.QueryParseException: Failed to execute query: SELECT * FROM Document WHERE ecm:fulltext LIKE 'abs*%' AND ecm:isProxy = 0 AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH ", Syntax error: Invalid token &amp;lt;null&amp;gt; at offset -1
	at org.nuxeo.ecm.core.query.sql.parser.parser.parseFailed(parser.java:519) ~[nuxeo-core-query-10.10-HF21.jar:?]
	at org.nuxeo.ecm.core.query.sql.parser.parser.unrecovered_syntax_error(parser.java:510) ~[nuxeo-core-query-10.10-HF21.jar:?]
	at java_cup.runtime.lr_parser.parse(lr_parser.java:601) ~[java-cup-0.11a.jar:?]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(I've also included the entire error message as a file.)&lt;/P&gt;
&lt;P&gt;Here is the page provider.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.query.api.PageProviderService" point="providers"&amp;gt;

  &amp;lt;coreQueryPageProvider name="TEST_PP"&amp;gt;
    &amp;lt;pattern quoteParameters="false" escapeParameters="true"&amp;gt;
      SELECT * FROM Document WHERE ecm:fulltext LIKE '?%' AND ecm:isProxy = 0 AND
      ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
      AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH '?' 
    &amp;lt;/pattern&amp;gt;
    &amp;lt;parameter&amp;gt;#{documentManager.getParentDocument(currentDocument.parentRef).path}&amp;lt;/parameter&amp;gt;
    &amp;lt;pageSize&amp;gt;50&amp;lt;/pageSize&amp;gt;
  &amp;lt;/coreQueryPageProvider&amp;gt;

&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have also tried just putting a plain string in the parameter node like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;parameter&amp;gt;/base&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I've also come across the same error.&lt;/P&gt;
&lt;P&gt;Please let me know what I am doing incorrectly or if there is any more information needed to help solving this issue.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 22:01:12 GMT</pubDate>
    <dc:creator>andrew_lam</dc:creator>
    <dc:date>2020-07-07T22:01:12Z</dc:date>
    <item>
      <title>Adding a second parameter to a page provider</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/adding-a-second-parameter-to-a-page-provider/m-p/328230#M15231</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to modify the page provider used by the top search bar by adding a second parameter. I have followed the example in this post.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://answers.nuxeo.com/general/q/cbd27e23ddc547058d3cc4bfb1f5658d/How-to-filter-in-the-Single-Multiple-Document-suggestion-widget-Documents-fetched"&gt;https://answers.nuxeo.com/general/q/cbd27e23ddc547058d3cc4bfb1f5658d/How-to-filter-in-the-Single-Multiple-Document-suggestion-widget-Documents-fetched&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The use case from the post is pretty much exactly what I want and I've tried replicating it, but I run into this error.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2020-07-07T16:42:07,985 WARN  [http-nio-0.0.0.0-8080-exec-10] [org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider] Failed to execute query: SELECT * FROM Document WHERE ecm:fulltext LIKE 'abs*%' AND ecm:isProxy = 0 AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH ", Syntax error: Invalid token &amp;lt;null&amp;gt; at offset -1
org.nuxeo.ecm.core.query.QueryParseException: Failed to execute query: SELECT * FROM Document WHERE ecm:fulltext LIKE 'abs*%' AND ecm:isProxy = 0 AND ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH ", Syntax error: Invalid token &amp;lt;null&amp;gt; at offset -1
	at org.nuxeo.ecm.core.query.sql.parser.parser.parseFailed(parser.java:519) ~[nuxeo-core-query-10.10-HF21.jar:?]
	at org.nuxeo.ecm.core.query.sql.parser.parser.unrecovered_syntax_error(parser.java:510) ~[nuxeo-core-query-10.10-HF21.jar:?]
	at java_cup.runtime.lr_parser.parse(lr_parser.java:601) ~[java-cup-0.11a.jar:?]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(I've also included the entire error message as a file.)&lt;/P&gt;
&lt;P&gt;Here is the page provider.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.query.api.PageProviderService" point="providers"&amp;gt;

  &amp;lt;coreQueryPageProvider name="TEST_PP"&amp;gt;
    &amp;lt;pattern quoteParameters="false" escapeParameters="true"&amp;gt;
      SELECT * FROM Document WHERE ecm:fulltext LIKE '?%' AND ecm:isProxy = 0 AND
      ecm:mixinType = 'Folderish' AND ecm:mixinType != 'HiddenInNavigation'
      AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:path STARTSWITH '?' 
    &amp;lt;/pattern&amp;gt;
    &amp;lt;parameter&amp;gt;#{documentManager.getParentDocument(currentDocument.parentRef).path}&amp;lt;/parameter&amp;gt;
    &amp;lt;pageSize&amp;gt;50&amp;lt;/pageSize&amp;gt;
  &amp;lt;/coreQueryPageProvider&amp;gt;

&amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have also tried just putting a plain string in the parameter node like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;parameter&amp;gt;/base&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I've also come across the same error.&lt;/P&gt;
&lt;P&gt;Please let me know what I am doing incorrectly or if there is any more information needed to help solving this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 22:01:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/adding-a-second-parameter-to-a-page-provider/m-p/328230#M15231</guid>
      <dc:creator>andrew_lam</dc:creator>
      <dc:date>2020-07-07T22:01:12Z</dc:date>
    </item>
  </channel>
</rss>

