与其他应用程序集成 > Creo Parametric – Windchill 集成 > 管理和配置 > 配置 Windchill 与 Creo Parametric 的互操作性 > 自定义 HTML 客户端对象选择页面 > 修改搜索属性列表委派
  
修改搜索属性列表委派
要实现用户自己自定义的 PickerSearchAttributeListDelegate,可创建一个实现 wt.query.SearchAttributeListDelegate 和 com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate 的类,或创建一个属于 com.ptc.windchill.cadx.common.picker.PickerSearchAttributeList 的子类。有关 PickerSearchAttributeListDelegate 和 PickerSearchAttributeList 及其方法的详细信息,请参见 javadoc。
* 
PickerSearchAttributeList 扩展了 SearchAttributeList;因此,自定义类可用作 SearchAttributeListDelegate 和 PickerSearchAttribute ListDelegate。
* 
如果扩展 PickerSearchAttributeList,可能需要设置筛选器以滤掉 NullPointerExceptions。此问题将在以后的版本中解决。
要配置一个新的 PickerSearchAttributeListDelegate,可使用 xconfmanager 向 com/ptc/windchill/cadx/common/picker/picker.properties 中添加条目,情形如下:
wt.services/svc/default/com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate/<同时也为 com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList 指定的唯一委派 id> /java.lang.Object/0=mine.MyPickerSearchAttributeList/duplicate。
使用 xconfmanager,将 wt.properties 中的 pickerSearchAttributeList 条目更改为 com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList=<唯一的委派 id>。如果在 wt.properties 中没有条目,则将 STANDARD 用作委派 id。