Personalizzazione avanzata > Business Logic Customization > Customizing MPMLink > Configuring Search Delegate for Object Reference Attributes > Procedure
  
Procedure
1. Create a new delegate, such as CustomObjectReferenceAttributeSearchDelegate.
2. Add an entry about the delegate in the BaseClient.service.properties.xconf file located at WT_HOME/codebase/com/ptc/windchill/baseclient/xconf.
<Service context="default" name="com.ptc.windchill.baseclient.server.delegate.ObjectReferenceAttributeSearchDelegate">
<Option cardinality="duplicate" requestor="null" serviceClass="com.ptc.windchill.baseclient.server.delegate.CustomObjectReferenceAttributeSearchDelegate" selector="com.ptc.windchill.enterprise.data.EnterpriseData|com.ptc.windchill.enterprise.data.enterpriseData.PlantSpecificEnterpriseData|org.rnd.Pune~alternateobjref" />
</Service>
The selector is the object name and attribute id.
3. Override the following methods in CustomObjectReferenceAttributeSearchDelegate:
public TypeInstance[] executeQuerySearch(FindOperationParams findOperationParams, TypeIdentifier[] result_types,Identifier selectedObject, String ncid);
Provides logic to build the query that is executed to fetch reference objects.
public Attribute getDisplayAttribute();
Provides logic to display the attribute of reference objects in the search result.
After performing the above steps, the CustomObjectReferenceAttributeSearchDelegate class appears as shown: