cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced search Custom attributes

lmoulin
Champ in-the-making
Champ in-the-making
Hello,
I have define two customs types (erd and but) in the advanced search window.
<config evaluator="string-compare" condition="Advanced Search">
   <advanced-search>
      <content-types>
         <type name="my:erd"/>
         <type name="my:but"/>
      </content-types>
      <custom-properties>
         <meta-data type="my:erd" property="my:erd_date_creation"/>
         <meta-data type="my:erd" property="my:erd_client"/>
         <meta-data type="my:erd" property="my:erd_index"/>
         <meta-data type="my:but" property="my:but_attr1"/>
         <meta-data type="my:but" property="my:but_attr2" />
         <meta-data type="my:but" property="my:but_attr3"/>
      </custom-properties>
   </advanced-search>
</config>

I want to display the meta-data of a type when the user selects this type in the advanced search.
For example, when the user selects the document type ‘erd’, ONLY the properties ‘erd_date_creation’, ‘erd_client’ and ‘erd_index’ are displayed. The properties ‘but_attr1’, ‘but_attr2’ and ‘but_attr3’ are not visible.

thanks a lot,
Luc
8 REPLIES 8

gavinc
Champ in-the-making
Champ in-the-making
Unfortunately this is not currently possible.

damodar
Champ in-the-making
Champ in-the-making
Hi,

I have done a list box for a custom property, it is working fine. Now I wanted to use it in advanced search, I configured like this

<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="cm:content" />
</content-types>
<custom-properties>
<meta-data type="cm:content" property="cm:docRating" />
</custom-properties>
</advanced-search>
</config>


Here docRating is my custom property, Now it is getting as text field I wanted it to be list box like which is there in the property sheet.

Can you please guide me how to get my custom property in the advanced search as list box.

Thanks in Advance…
Damodar

kevinr
Star Contributor
Star Contributor
This is not currently supported.

Thanks,

Kevin

damodar
Champ in-the-making
Champ in-the-making
hi kevinr,

Can you please advise me how to get the list box for the custom property in both properties and in the advanced search

Thanks&Regards
Damodar

gavinc
Champ in-the-making
Champ in-the-making

michael_kiske
Champ in-the-making
Champ in-the-making
Hi.

I am interested also in this functionality. I am working with Alfresco 2.0.

I haver change the UICustomSearchProperties, for:
- Using listbox with faces to fill them.
- Changing layout (now is a 3-column one) to include a checkbox to select if the seach includes this property (as in the date/datetime type)

But now, I have to modify the class in which the params are received to compose the query.

¿Which class/es I need to change?

Thanks in advance.

Michael

michael_kiske
Champ in-the-making
Champ in-the-making
Ok. The code is in AdvanceSearchBean.java.

Now, it's complete. Also, I have used a fixed query for the option selected.

mliwski
Champ in-the-making
Champ in-the-making
Congratulations Michael, Can you post the solution? Or maybe guide us where to find it…

Thanks a lot.

Matias.