<?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: I create a new advanced search but it doesn&amp;apos;t work in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/i-create-a-new-advanced-search-but-it-doesn-apos-t-work/m-p/320674#M7675</link>
    <description>&lt;P&gt;I find the problems ! Because of tests, my advanced search name was record with an old name in local configuration at the domain. I re-record it and now, all is right !&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2013 18:06:32 GMT</pubDate>
    <dc:creator>brigitte_</dc:creator>
    <dc:date>2013-01-24T18:06:32Z</dc:date>
    <item>
      <title>I create a new advanced search but it doesn&amp;apos;t work</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/i-create-a-new-advanced-search-but-it-doesn-apos-t-work/m-p/320673#M7674</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I create a new advanced search (I don't want just overridden the default, I need to create several  news advanced search). It seems it's possible as there is a choice in the local configuration of a domain or workspace for example.&lt;/P&gt;
&lt;P&gt;So, I create a new advanced search, I can choice it for the local configuration on a domain. It's ok. But when I call it, the criteria is empty and the result search indicates "ERROR: layout " not found". I need to work on 2 custom type of document.&lt;/P&gt;
&lt;P&gt;Here is an excerpt of my contentview-config.xml :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; &amp;lt;contentView name="my-advanced-search"&amp;gt;

  &amp;lt;title&amp;gt;My custom Advanced Search&amp;lt;/title&amp;gt;
  &amp;lt;showTitle&amp;gt;true&amp;lt;/showTitle&amp;gt;

  &amp;lt;emptySentence&amp;gt;label.content.empty.search&amp;lt;/emptySentence&amp;gt;
  &amp;lt;translateEmptySentence&amp;gt;true&amp;lt;/translateEmptySentence&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="MyAdvancedType"&amp;gt;
         &amp;lt;predicate parameter="myTypeA:monchamps-1" operator="LIKE"&amp;gt;
           &amp;lt;field schema="my-advanced-search" name="monchampsinterroge-1" /&amp;gt;
        &amp;lt;/predicate&amp;gt;
        &amp;lt;predicate parameter="myTypeB:monchamps-2" operator="LIKE"&amp;gt;
           &amp;lt;field schema="my-advanced-search" name="monchampsinterroge-2" /&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 = 'myTypeA' OR
        ecm:primaryType = 'myTypeB' 
      &amp;lt;/fixedPart&amp;gt;            
       &amp;lt;/whereClause&amp;gt;
       &amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;
       &amp;lt;sortInfosBinding&amp;gt;
         #{documentSearchActions.searchSortInfos}
       &amp;lt;/sortInfosBinding&amp;gt; 
       &amp;lt;/coreQueryPageProvider&amp;gt;

  &amp;lt;searchLayout name="my-advanced-search" /&amp;gt;
  &amp;lt;showFilterForm&amp;gt;false&amp;lt;/showFilterForm&amp;gt;

  &amp;lt;showPageSizeSelector&amp;gt;false&amp;lt;/showPageSizeSelector&amp;gt;
  &amp;lt;useGlobalPageSize&amp;gt;false&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;only_one_cache&amp;lt;/cacheKey&amp;gt;
  &amp;lt;cacheSize&amp;gt;1&amp;lt;/cacheSize&amp;gt;

   &amp;lt;resultColumns&amp;gt;
    #{documentSearchActions.selectedLayoutColumns}
  &amp;lt;/resultColumns&amp;gt; 
  &amp;lt;resultLayouts&amp;gt;
    &amp;lt;layout name="search_listing_ajax" title="document_listing"
      translateTitle="true" iconPath="/icons/document_listing_icon.png"
      showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" /&amp;gt;
    &amp;lt;layout name="document_virtual_navigation_listing_ajax_compact_2_columns"
      title="document_listing_compact_2_columns" translateTitle="true"
      iconPath="/icons/document_listing_compact_2_columns_icon.png"
      showCSVExport="true" showPDFExport="false" showSyndicationLinks="true" /&amp;gt;
    &amp;lt;layout name="document_virtual_navigation_listing_ajax_icon_2_columns"
      title="document_listing_icon_2_columns" translateTitle="true"
      iconPath="/icons/document_listing_icon_2_columns_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;flags&amp;gt;
    &amp;lt;flag&amp;gt;ADVANCED_SEARCH&amp;lt;/flag&amp;gt;
  &amp;lt;/flags&amp;gt;

&amp;lt;/contentView&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In my layout-contrib.xml, I have the definition of my searchLayout :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;layout name="my-advanced-search"&amp;gt;
  &amp;lt;templates&amp;gt;
    &amp;lt;template mode="any"&amp;gt;/layouts/layout_default_template.xhtml&amp;lt;/template&amp;gt;
  &amp;lt;/templates&amp;gt;
  &amp;lt;rows&amp;gt;
    &amp;lt;row&amp;gt;
      &amp;lt;widget&amp;gt;search_all_words&amp;lt;/widget&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row&amp;gt;
      &amp;lt;widget&amp;gt;my_widget_search1&amp;lt;/widget&amp;gt;
    &amp;lt;/row&amp;gt;
    &amp;lt;row&amp;gt;
      &amp;lt;widget&amp;gt;my_widget_search2&amp;lt;/widget&amp;gt;
    &amp;lt;/row&amp;gt;
   &amp;lt;/rows&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
 
&lt;P&gt;Here is my type :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;schema name="my-advanced-search" src="schemas/my-advanced-search.xsd" 
  prefix="advsppa"/&amp;gt;

  &amp;lt;doctype extends="Document" name="MyAdvancedType"&amp;gt;
  &amp;lt;schema name="my-advanced-search"/&amp;gt;
&amp;lt;/doctype&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any idea why my layout "my-advanced-search" isn't display ?&lt;/P&gt;
&lt;P&gt;Thanks for any help !&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 15:56:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/i-create-a-new-advanced-search-but-it-doesn-apos-t-work/m-p/320673#M7674</guid>
      <dc:creator>brigitte_</dc:creator>
      <dc:date>2013-01-24T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: I create a new advanced search but it doesn&amp;apos;t work</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/i-create-a-new-advanced-search-but-it-doesn-apos-t-work/m-p/320674#M7675</link>
      <description>&lt;P&gt;I find the problems ! Because of tests, my advanced search name was record with an old name in local configuration at the domain. I re-record it and now, all is right !&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 18:06:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/i-create-a-new-advanced-search-but-it-doesn-apos-t-work/m-p/320674#M7675</guid>
      <dc:creator>brigitte_</dc:creator>
      <dc:date>2013-01-24T18:06:32Z</dc:date>
    </item>
  </channel>
</rss>

