cancel
Showing results for 
Search instead for 
Did you mean: 

Drop box for Advanced search option fileds

bisana
Champ on-the-rise
Champ on-the-rise
Hi
  With your help I was able to do drop down option for the property field for document type
 
"https://forums.alfresco.com/en/viewtopic.php?f=48&t=44301"
Since I have drop down options for editing document type properties, I would like to have the same feature for the Advance search option when I select the document type.
Any advice or pointers will be much helpful
Thanks
Joseph John
6 REPLIES 6

bhavanapb
Champ in-the-making
Champ in-the-making
Hi

you will have to configure the search form in your share-custom-config.xml under web-extension folder..

thanks

bisana
Champ on-the-rise
Champ on-the-rise
Did you mean "share-config.custom.xml" .
To display Document Type or Aspects, we have to do "share-config-custom.xml".
I had done the additions which are needed to display the search option in text format, what I wanted is that I want an option to have drop down menu option for the fields  in the advance search screen

bhavanapb
Champ in-the-making
Champ in-the-making
HI

Sorry for the wrong file name …. u r right share-config-custom.xml
I think i am not clear with your requirement ..can you please explain with example for better understanding…


Thanks

bisana
Champ on-the-rise
Champ on-the-rise
Hi bhavanapb
Thanks for the reply
I have done drop down option for document type properties
"https://forums.alfresco.com/en/viewtopic.php?f=48&t=44301"
ie When I fill up the values for Document Types, I use drop down option to chose the values

The same I  would like to implement when I do a advanced search, ie instead of typing the document fields, I should be able to select it from drop down option
thanks
Joseph John

mitpatoliya
Star Collaborator
Star Collaborator
Hi John,

If your property has list constrain you can show that in share by adding following tag in your share-config-custom.xml
  <field id="property id(ex.customSmiley Tonguerop)">
               <control template="/org/alfresco/components/form/controls/selectone.ftl" />
    </field>

this will come under appearance tag.
Also make sure you have added the same id under
            <field-visibility>.

bisana
Champ on-the-rise
Champ on-the-rise
THANKS a lot
It is working,
your post helped me a lot, I did not knew how to solve it before
Thanks