<?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 Advanced search: How to limit results to the current folder. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326517#M13518</link>
    <description>&lt;P&gt;How can I limit the search results to only elements contained in the current folder. What I'm using now returns all the "accuse de reception" stored in DB.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;contentView name="parent_accuse_de_reception_content"&amp;gt;

      &amp;lt;title&amp;gt;label.contentview.accuse_de_receptions_content&amp;lt;/title&amp;gt;
      &amp;lt;translateTitle&amp;gt;true&amp;lt;/translateTitle&amp;gt;
      &amp;lt;showTitle&amp;gt;false&amp;lt;/showTitle&amp;gt;

      &amp;lt;coreQueryPageProvider&amp;gt;
        &amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
        &amp;lt;property name="maxResults"&amp;gt;DEFAULT_NAVIGATION_RESULTS&amp;lt;/property&amp;gt;
        &amp;lt;whereClause docType="accuse_de_reception_search"&amp;gt;
          &amp;lt;predicate parameter="adr:num_facture" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="num_facture" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;predicate parameter="bc_base:num_bc" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="num_bc" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
		  &amp;lt;predicate parameter="adr:ville" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="ville" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
		  &amp;lt;predicate parameter="adr:montant" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="montant" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;fixedPart&amp;gt;
                ecm:isCheckedInVersion = 0 AND
				ecm:mixinType != 'HiddenInNavigation' AND 
				ecm:currentLifeCycleState != 'deleted' AND
				ecm:primaryType = 'accuse_de_reception' 
          &amp;lt;/fixedPart&amp;gt;
			&amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
        &amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;		  
        &amp;lt;/whereClause&amp;gt;
      &amp;lt;/coreQueryPageProvider&amp;gt;

      &amp;lt;showPageSizeSelector&amp;gt;true&amp;lt;/showPageSizeSelector&amp;gt;
      &amp;lt;useGlobalPageSize&amp;gt;true&amp;lt;/useGlobalPageSize&amp;gt;
      &amp;lt;refresh&amp;gt;
        &amp;lt;event&amp;gt;documentChanged&amp;lt;/event&amp;gt;
        &amp;lt;event&amp;gt;documentChildrenChanged&amp;lt;/event&amp;gt;
      &amp;lt;/refresh&amp;gt;
      &amp;lt;cacheKey&amp;gt;#{currentDocument.repositoryName}_#{currentDocument.id}&amp;lt;/cacheKey&amp;gt;
      &amp;lt;cacheSize&amp;gt;10&amp;lt;/cacheSize&amp;gt;

      &amp;lt;searchLayout name="accuse_de_reception_filter" filterDisplayType="quick" /&amp;gt;
      &amp;lt;showFilterForm&amp;gt;true&amp;lt;/showFilterForm&amp;gt;

      &amp;lt;resultLayouts&amp;gt;
        &amp;lt;layout name="accuse_de_reception_listing_ajax" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showPDFExport="false"
          showSyndicationLinks="true" /&amp;gt;
      &amp;lt;/resultLayouts&amp;gt;

      &amp;lt;selectionList&amp;gt;CURRENT_SELECTION&amp;lt;/selectionList&amp;gt;
      &amp;lt;actions category="CURRENT_SELECTION_LIST" /&amp;gt;
    &amp;lt;/contentView&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jul 2015 10:33:54 GMT</pubDate>
    <dc:creator>Dalal_</dc:creator>
    <dc:date>2015-07-28T10:33:54Z</dc:date>
    <item>
      <title>Advanced search: How to limit results to the current folder.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326517#M13518</link>
      <description>&lt;P&gt;How can I limit the search results to only elements contained in the current folder. What I'm using now returns all the "accuse de reception" stored in DB.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;contentView name="parent_accuse_de_reception_content"&amp;gt;

      &amp;lt;title&amp;gt;label.contentview.accuse_de_receptions_content&amp;lt;/title&amp;gt;
      &amp;lt;translateTitle&amp;gt;true&amp;lt;/translateTitle&amp;gt;
      &amp;lt;showTitle&amp;gt;false&amp;lt;/showTitle&amp;gt;

      &amp;lt;coreQueryPageProvider&amp;gt;
        &amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
        &amp;lt;property name="maxResults"&amp;gt;DEFAULT_NAVIGATION_RESULTS&amp;lt;/property&amp;gt;
        &amp;lt;whereClause docType="accuse_de_reception_search"&amp;gt;
          &amp;lt;predicate parameter="adr:num_facture" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="num_facture" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;predicate parameter="bc_base:num_bc" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="num_bc" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
		  &amp;lt;predicate parameter="adr:ville" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="ville" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
		  &amp;lt;predicate parameter="adr:montant" operator="="&amp;gt;
            &amp;lt;field schema="accuse_de_reception_search" name="montant" /&amp;gt;
          &amp;lt;/predicate&amp;gt;
          &amp;lt;fixedPart&amp;gt;
                ecm:isCheckedInVersion = 0 AND
				ecm:mixinType != 'HiddenInNavigation' AND 
				ecm:currentLifeCycleState != 'deleted' AND
				ecm:primaryType = 'accuse_de_reception' 
          &amp;lt;/fixedPart&amp;gt;
			&amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
        &amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;		  
        &amp;lt;/whereClause&amp;gt;
      &amp;lt;/coreQueryPageProvider&amp;gt;

      &amp;lt;showPageSizeSelector&amp;gt;true&amp;lt;/showPageSizeSelector&amp;gt;
      &amp;lt;useGlobalPageSize&amp;gt;true&amp;lt;/useGlobalPageSize&amp;gt;
      &amp;lt;refresh&amp;gt;
        &amp;lt;event&amp;gt;documentChanged&amp;lt;/event&amp;gt;
        &amp;lt;event&amp;gt;documentChildrenChanged&amp;lt;/event&amp;gt;
      &amp;lt;/refresh&amp;gt;
      &amp;lt;cacheKey&amp;gt;#{currentDocument.repositoryName}_#{currentDocument.id}&amp;lt;/cacheKey&amp;gt;
      &amp;lt;cacheSize&amp;gt;10&amp;lt;/cacheSize&amp;gt;

      &amp;lt;searchLayout name="accuse_de_reception_filter" filterDisplayType="quick" /&amp;gt;
      &amp;lt;showFilterForm&amp;gt;true&amp;lt;/showFilterForm&amp;gt;

      &amp;lt;resultLayouts&amp;gt;
        &amp;lt;layout name="accuse_de_reception_listing_ajax" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="true" showPDFExport="false"
          showSyndicationLinks="true" /&amp;gt;
      &amp;lt;/resultLayouts&amp;gt;

      &amp;lt;selectionList&amp;gt;CURRENT_SELECTION&amp;lt;/selectionList&amp;gt;
      &amp;lt;actions category="CURRENT_SELECTION_LIST" /&amp;gt;
    &amp;lt;/contentView&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jul 2015 10:33:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326517#M13518</guid>
      <dc:creator>Dalal_</dc:creator>
      <dc:date>2015-07-28T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced search: How to limit results to the current folder.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326518#M13519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the &lt;CODE&gt;&amp;lt;fixedPart&amp;gt;&lt;/CODE&gt; you need to add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;AND ecm:parentId = ?
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then after the &lt;CODE&gt;&amp;lt;/whereClause&amp;gt;&lt;/CODE&gt; you need to add&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;parameter&amp;gt;#{currentDocument.id}&amp;lt;/parameter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can have a look at the &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewContribution/org.nuxeo.ecm.webapp.contentview.contrib--contentViews"&gt;document_content&lt;/A&gt; content view, which uses this mechanism.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326518#M13519</guid>
      <dc:creator>Manon_Lumeau</dc:creator>
      <dc:date>2015-07-28T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced search: How to limit results to the current folder.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326519#M13520</link>
      <description>&lt;P&gt;That's exactly what I was looking for. Thanks [Manon Lumeau](https&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 15:16:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/advanced-search-how-to-limit-results-to-the-current-folder/m-p/326519#M13520</guid>
      <dc:creator>Dalal_</dc:creator>
      <dc:date>2015-07-28T15:16:49Z</dc:date>
    </item>
  </channel>
</rss>

