ricerca avanzata un bugs o errore nella configurazione?

cancel
Showing results for 
Search instead for 
Did you mean: 
nturri1306
Member II

ricerca avanzata un bugs o errore nella configurazione?

salve sono 2 giorni che cerco di far funzionare la benedetta ricerca avanzata di Alfresco Community (Build: 201604) 5.1.f
ho fatto prove di tutti i tipi ma nulla nessun risultato sempre lo stesso errore nel form personalizzato
ho seguito la guida https://wiki.alfresco.com/wiki/Share_Advanced_Search#Configuration

vi posto la configurazione piu' semplice che ho fatto

modello:


<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.alfresco.org/model/dictionary/1.0" name="abc:finance">
    <author>nicola</author>
    <imports>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
    </imports>
    <namespaces>
        <namespace uri="http://www.mycompany.com/model/finance/1.0." prefix="abc"/>
    </namespaces>
    <data-types/>
    <constraints/>
    <types/>
    <aspects>
        <aspect name="abc:form1">
            <title>finance.form1</title>
            <properties>
                <property name="abc:campo2">
                    <title>campo2</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                    <index enabled="true">
                        <tokenised>TRUE</tokenised>
                        <facetable>false</facetable>
                    </index>
                </property>
                <property name="abc:campo1">
                    <title>campo1</title>
                    <type>d:text</type>
                    <mandatory>false</mandatory>
                    <index enabled="true">
                        <tokenised>TRUE</tokenised>
                        <facetable>false</facetable>
                    </index>
                </property>
            </properties>
            <associations/>
            <overrides/>
            <mandatory-aspects/>
        </aspect>
    </aspects>
</model>


ci sono solo 2 campi


in share-config.xml



  <config evaluator="string-compare" condition="AdvancedSearch">
      <advanced-search>
         <!– Forms for the advanced search type list –>
         <forms>
            <!–
               The 'form' config element contains the name of the model type
               of the form to display.
              
               The element supports the following optional attributes:
                  id = form id, the id of "search" will be assumed if not set
                  label = label text to display - defaults to model type if not set
                  labelId = I18N message id of label text to display
                  description = description text to display
                  descriptionId = I18N message id of description text to display
            –>
            <form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
            <form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
            <form label="form1" id="search" description="ricerca form1 ">mioform</form>
         
         </forms>
      </advanced-search>
   </config>



in share-config-custom.xml



    <config evaluator="model-type" condition="mioform">
         <forms>
            <!– Search form –>
            <form id="search">
               <field-visibility>
                  <show id="abc:campo1" force="true" />
                  <show id="abc:campo2" force="true" />
               
               </field-visibility>           
            </form>
         </forms>
   </config>



in ricerca avanzata mi appare la selezione del tipo di ricerca ma non crea il form allego un immagine

nel log mi esce sempre questo errore

  ERROR [scripts.forms.FormUIGet] [http-apr-7080-exec-7] org.alfresco.repo.forms.FormNotFoundException: 04160005 A form could not be found for item: [type]mioform




1 Reply
blade
Active Member II

Re: ricerca avanzata un bugs o errore nella configurazione?

Ciao,

ho visto che hai configurato una parte in share-config.xlm e una in share-config-custom.xml
Prova a mettere tutto nel secondo file.