<?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 Widget Document Suggestion how to query on two fields? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/widget-document-suggestion-how-to-query-on-two-fields/m-p/315478#M2479</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my layout I would like to be able to search a document but be able to search either on its name or on its code. I tried several things with the nxql query but couldn't make it work. I thought about the javascript formatter but I think it wouldn't help me search on both field.&lt;/P&gt;
&lt;P&gt;Here's what I tried: SELECT * FROM myDocType WHERE dc:title = '%?%' OR mySchema:code = '%?%'&lt;/P&gt;
&lt;P&gt;but obviously it's not working. I get an empty response from the servor. Would you have any idea how to achieve this ? Or if it's even possible ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 06:20:46 GMT</pubDate>
    <dc:creator>Mathilde_Viveri</dc:creator>
    <dc:date>2017-03-30T06:20:46Z</dc:date>
    <item>
      <title>Widget Document Suggestion how to query on two fields?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/widget-document-suggestion-how-to-query-on-two-fields/m-p/315478#M2479</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In my layout I would like to be able to search a document but be able to search either on its name or on its code. I tried several things with the nxql query but couldn't make it work. I thought about the javascript formatter but I think it wouldn't help me search on both field.&lt;/P&gt;
&lt;P&gt;Here's what I tried: SELECT * FROM myDocType WHERE dc:title = '%?%' OR mySchema:code = '%?%'&lt;/P&gt;
&lt;P&gt;but obviously it's not working. I get an empty response from the servor. Would you have any idea how to achieve this ? Or if it's even possible ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 06:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/widget-document-suggestion-how-to-query-on-two-fields/m-p/315478#M2479</guid>
      <dc:creator>Mathilde_Viveri</dc:creator>
      <dc:date>2017-03-30T06:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Widget Document Suggestion how to query on two fields?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/widget-document-suggestion-how-to-query-on-two-fields/m-p/315479#M2480</link>
      <description>&lt;P&gt;You can use your widget's custom parameter : "operationId" and set its value to the name of your contributed custom operation.
There is an example with javascript automation here : &lt;A href="https://www.nuxeo.com/blog/fun-suggestion-widget-javascript/" target="test_blank"&gt;https://www.nuxeo.com/blog/fun-suggestion-widget-javascript/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 08:02:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/widget-document-suggestion-how-to-query-on-two-fields/m-p/315479#M2480</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-04-01T08:02:45Z</dc:date>
    </item>
  </channel>
</rss>

