<?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: About the coreQueryPageProvider and Predicate /fixedPart in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/about-the-corequerypageprovider-and-predicate-fixedpart/m-p/323640#M10641</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;H2&gt;I found the solution : searchDocument, obviously !&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fixedPart&amp;gt;
    ecm:isCheckedInVersion = 0 AND
    ecm:currentLifeCycleState != 'deleted' AND
    ( ecm:primaryType = 'MonTypeA' OR
    ecm:primaryType = 'MonTypeB' ) AND
    ( MonTypeA:sitebat STARTSWITH ? OR
      MonTypeB:sitebat STARTSWITH ?) ) 
  &amp;lt;/fixedPart&amp;gt;      
&amp;lt;/whereClause&amp;gt;
  &amp;lt;parameter&amp;gt;#{searchDocument.my_advanced_search.site}&amp;lt;/parameter&amp;gt;
  &amp;lt;parameter&amp;gt;#{searchDocument.my_advanced_search.site}&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Feb 2013 17:59:09 GMT</pubDate>
    <dc:creator>brigitte_</dc:creator>
    <dc:date>2013-02-07T17:59:09Z</dc:date>
    <item>
      <title>About the coreQueryPageProvider and Predicate /fixedPart</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/about-the-corequerypageprovider-and-predicate-fixedpart/m-p/323639#M10640</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have to query several sub-workspace where there are several types of documents. Each type of theses documents contains one same metadata among others.&lt;/P&gt;
&lt;P&gt;So, I can't use &lt;PREDICATE&gt; element because I understand that there is a AND between each &lt;PREDICATE&gt;, isn't it ? Unless an OR element is possible ?&lt;/PREDICATE&gt;&lt;/PREDICATE&gt;&lt;/P&gt;
&lt;P&gt;I try to use the &lt;FIXEDPART&gt; element but I don't know the syntax to reference the field of my search. I'm in an advanced search.&lt;/FIXEDPART&gt;&lt;/P&gt;
&lt;P&gt;For example, I can't use that because I want a OR and not a AND :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;predicate parameter="MonTypeA:sitebat" operator="STARTSWITH"&amp;gt;
       &amp;lt;field schema="my_advanced_search" name="site" /&amp;gt;
&amp;lt;/predicate&amp;gt;
 &amp;lt;predicate parameter="MonTypeB:sitebat" operator="STARTSWITH"&amp;gt;
       &amp;lt;field schema="my_advanced_search" name="site" /&amp;gt;
 &amp;lt;/predicate&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this doesn't ok :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;       &amp;lt;fixedPart&amp;gt;
        ecm:isCheckedInVersion = 0 AND
        ecm:currentLifeCycleState != 'deleted' AND
        ( ecm:primaryType = 'MonTypeA' OR
        ecm:primaryType = 'MonTypeB' ) AND
        ( MonTypeA:sitebat STARTSWITH ? OR
          MonTypeB:sitebat STARTSWITH ?)             `) 
      &amp;lt;/fixedPart&amp;gt;      
    &amp;lt;/whereClause&amp;gt;
      &amp;lt;parameter&amp;gt;my_advanced_search:site&amp;lt;/parameter&amp;gt;
      &amp;lt;parameter&amp;gt;my_advanced_search:site&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The problem comes from the syntax of element &lt;PARAMETER&gt; : how reference the field "site" of my advanced search ?&lt;/PARAMETER&gt;&lt;/P&gt;
&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2013 17:37:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/about-the-corequerypageprovider-and-predicate-fixedpart/m-p/323639#M10640</guid>
      <dc:creator>brigitte_</dc:creator>
      <dc:date>2013-01-25T17:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: About the coreQueryPageProvider and Predicate /fixedPart</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/about-the-corequerypageprovider-and-predicate-fixedpart/m-p/323640#M10641</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;H2&gt;I found the solution : searchDocument, obviously !&lt;/H2&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fixedPart&amp;gt;
    ecm:isCheckedInVersion = 0 AND
    ecm:currentLifeCycleState != 'deleted' AND
    ( ecm:primaryType = 'MonTypeA' OR
    ecm:primaryType = 'MonTypeB' ) AND
    ( MonTypeA:sitebat STARTSWITH ? OR
      MonTypeB:sitebat STARTSWITH ?) ) 
  &amp;lt;/fixedPart&amp;gt;      
&amp;lt;/whereClause&amp;gt;
  &amp;lt;parameter&amp;gt;#{searchDocument.my_advanced_search.site}&amp;lt;/parameter&amp;gt;
  &amp;lt;parameter&amp;gt;#{searchDocument.my_advanced_search.site}&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2013 17:59:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/about-the-corequerypageprovider-and-predicate-fixedpart/m-p/323640#M10641</guid>
      <dc:creator>brigitte_</dc:creator>
      <dc:date>2013-02-07T17:59:09Z</dc:date>
    </item>
  </channel>
</rss>

