AnsweredAssumed Answered

Advanced search authority association

Question asked by mtielemans on Aug 7, 2013
Latest reply on Jan 25, 2016 by mtielemans
As the title suggests, I have a custom type that includes an authority type association. I want this to be visible in advanced search.

I have read another post stating this is not by default possible, the suggested workaround being one my co-worker and I came up with ourselves as well: adding a new property text field, and writing the picked authority name to it whenever it changes, then make that searchable. I foresee two propblems with this option:

<li>The field will only be searchable by a username, or whichever value of the authority we decide to store in the textfield.</li>
<li>If the stored property, e.g. username, changes on the authority itself, the stored value doesn't change.</li>
<li>The user has to type the username or other stored property out, since the picker isn't working in the advanced search form for some reason.</li>
<li>All ways of changing the association property must be modified to also change the stored property, and there's a realistic chance the fields go out of sync, for example after a modification of the association property from outside (e.g. via cmis).</li>

All in all, I really don't want to burn my hands on this option, as the entire value of having the field searchable in the first place is degraded to barely any. Is there any other, better way I can do this, for example:

<li>Add the possibility to search on authorities to adv search</li>
<li>Connect two property fields so one responds to the other being changed, in whatever way (e.g. add a propertyChangeListener to my textfield property, that listens to changes on my association property and updates itself accordingly)?</li>
<li>Use the authority picker on an association property in adv search?</li>