Quantcast
Channel: Alfresco Forums - Alfresco Share
Viewing all articles
Browse latest Browse all 877

advanced search bugs or error in config on alfresco 5.1

$
0
0

Hello i've the following problem with custom advanced search this is my configuration

on Alfresco Community (Build: 201604) 5.1.f

model

<?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><code>  
share-config.xml <code><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>

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>

have the error when selected mioform on adavanced search

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

why ?

i see the tutorial https://wiki.alfresco.com/wiki/Share_Advanced_Search#Configuration

but I do not understand the error

tnx for help please.


Viewing all articles
Browse latest Browse all 877

Trending Articles