cancel
Showing results for 
Search instead for 
Did you mean: 

association question...

friedman30
Champ in-the-making
Champ in-the-making
when using an association, alfresco creates a component with a search field.
where can i find the implementation of that component :?: (class, method etc.)

is there a way to change the search query without touching the code, or is there a method that can do that (generate a different query for the association search field)

thanks,

Dror :wink:
9 REPLIES 9

rivarola
Champ on-the-rise
Champ on-the-rise
I think the UIContentSelector is the component you're looking for.

friedman30
Champ in-the-making
Champ in-the-making
Is there a way to use this UIContentSelector component just by defining it in an XML file?

:idea:
Thanks,
Dror

gavinc
Champ in-the-making
Champ in-the-making
The component you're after is UIAssociationEditor or UIChildAssociationEditor.

Unfortunately these are not configurable so if you want to change their behaviour you'll need to create custom versions and override their definition (from faces-config-beans.xml)

jayjayecl
Confirmed Champ
Confirmed Champ
Hi,

I want to customize the queries that are run when using the UIAssociationEditor component.
Unfortunately, I could not get where the "Search processing" code is.
Can anyone point me to this ?

Thank you

jayjayecl
Confirmed Champ
Confirmed Champ
Anyone please ?

zaizi
Champ in-the-making
Champ in-the-making
You mean org.alfresco.web.ui.repo.component.property.UIAssociationEditor in Web-Client?

jayjayecl
Confirmed Champ
Confirmed Champ
Absolutely.
I don't get how the search process is run. The method "encodeSearchButton" (something like that, I don't have the java class right now) shows that a javascript code is generated (something like calling the method generateForm), but I could not understand if it was this js code that wass meant to run the search.

I debugged search classes (like SimpleSearch.java, SearchContext.java …) with no result.

jayjayecl
Confirmed Champ
Confirmed Champ
Hi Zaizi.
So, do you have any clue for me ?
Any help would be much appreciated

thank you

jayjayecl
Confirmed Champ
Confirmed Champ
Hi Zaizi… sorry for insisting, but you might have missed this topic .
Thank you for your help