AnsweredAssumed Answered

aspect property in advance search form

Question asked by mtsiak on Oct 8, 2018
Latest reply on Oct 8, 2018 by angelborroy

I cannot manage to appear a property that belongs to an aspect in advance search

 

My custom type is `my:pDocument`, and my custom aspects are `my:abstractPable` and `my:incomingP`

 

<!-- customModel.xml -->
<type name="my:pDocument">
    <title>p document</title>
    <parent>cm:content</parent>
    <mandatory-aspects>
        <aspect>my:abstractPable</aspect>
        <aspect>cm:classifiable</aspect>
    </mandatory-aspects>
</type>

<aspect name="my:abstractPable">
    <title>Abstract P able</title>
    <properties>
        <property name="my:pNumber">
               <type>d:int</type>
               <mandatory>true</mandatory>
               <index enabled="true">
                 <atomic>true</atomic>
                 <stored>false</stored>
                 <tokenised>false</tokenised>
                 <facetable>true</facetable>
               </index>
        </property>
        ....

<aspect name="my:incomingP">
    <title>Incoming P doc</title>
    <parent>my:abstractPable</parent>
    <properties>
        <property name="my:originP">
               <type>d:text</type>
               <index enabled="true">
                 <atomic>true</atomic>
                 <stored>false</stored>
                 <tokenised>false</tokenised>
               </index>
        </property>
        ...

I have configured AdvancedSearch:

<!-- share-config-custom.xml -->
<config evaluator="string-compare" condition="AdvancedSearch">
    <advanced-search>
        <forms>
            <form labelId="type.my_pDocument" descriptionId="type.my_pDocument">my:pDocument</form>
            ...

How should i configure the search form in order to appear `my:originP` property?

Outcomes