<?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: NXQL query in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327650#M14651</link>
    <description>&lt;P&gt;Thanks Kevin it worked.But it receives an empty list.The xpath is not wrong .the parameter too.I don't get it&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2017 10:37:38 GMT</pubDate>
    <dc:creator>Nuxeo_User</dc:creator>
    <dc:date>2017-10-13T10:37:38Z</dc:date>
    <item>
      <title>NXQL query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327648#M14649</link>
      <description>&lt;P&gt;Hi :)
I am making a NXQL and passsing a parameter like this:
session.query("SELECT * FROM document_type_name WHERE xpath_name LIKE  " +parameter+"%");&lt;/P&gt;
&lt;P&gt;But it throws an exception saying Syntax error : Invalid token &lt;PARAMETERVALUE&gt; at offset 50
Any idea?&lt;/PARAMETERVALUE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 09:44:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327648#M14649</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-10-13T09:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327649#M14650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Stacktrace is always welcomed here. It could help to debug.&lt;/P&gt;
&lt;P&gt;In your case, I think your missing the surrounding quotes. See the documentation &lt;A href="https://doc.nuxeo.com/nxdoc/nxql/#examples"&gt;examples&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In your case it would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-java"&gt;session.query(“SELECT * FROM document_type_name WHERE xpath_name LIKE '" + parameter + "%'");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Oct 2017 09:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327649#M14650</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2017-10-13T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: NXQL query</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327650#M14651</link>
      <description>&lt;P&gt;Thanks Kevin it worked.But it receives an empty list.The xpath is not wrong .the parameter too.I don't get it&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 10:37:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nxql-query/m-p/327650#M14651</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-10-13T10:37:38Z</dc:date>
    </item>
  </channel>
</rss>

