高度なカスタマイズ > サービスおよびインフラストラクチャのカスタマイズ > MPMLink のカスタマイズ > オブジェクト参照属性のサーチ委任の設定 > 手順
  
手順
1. CustomObjectReferenceAttributeSearchDelegate などの新規委任を作成します。
2. WT_HOME/codebase/com/ptc/windchill/baseclient/xconf にある BaseClient.service.properties.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>
セレクタは、オブジェクト名と属性 ID です。
3. CustomObjectReferenceAttributeSearchDelegate で以下のメソッドをオーバーライドします。
public TypeInstance[] executeQuerySearch(FindOperationParams findOperationParams, TypeIdentifier[] result_types,Identifier selectedObject, String ncid);
参照オブジェクトを取得するために実行する照会を構築するロジックを指定します。
public Attribute getDisplayAttribute();
サーチ結果に参照オブジェクトの属性を表示するロジックを指定します。
上の手順を実行した後、CustomObjectReferenceAttributeSearchDelegate クラスは次のように表示されます。