Modifying the Search Attribute List Delegate
To implement your own custom PickerSearchAttributeListDelegate, create a class that implements wt.query.SearchAttributeListDelegate and com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate or create a class which sub-classes com.ptc.windchill.cadx.common.picker.PickerSearchAttributeList. See the javadoc for PickerSearchAttributeListDelegate and PickerSearchAttributeList and their methods for more details.
* 
PickerSearchAttributeList extends SearchAttributeList; therefore, the custom class can be used as the SearchAttributeListDelegate and PickerSearchAttribute ListDelegate.
* 
If extending PickerSearchAttributeList, you may have to set the filter to avoid NullPointerExceptions. This issue will be addressed in a future release.
To configure a new PickerSearchAttributeListDelegate, use the xconfmanager to add an entry to com/ptc/windchill/cadx/common/picker/picker.properties similar to:
wt.services/svc/default/com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate/<unique delegate id which is also specified for com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList> /java.lang.Object/0=mine.MyPickerSearchAttributeList/duplicate.
Using the xconfmanager, change the pickerSearchAttributeList entry in the wt.properties to com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList=<unique delegate id>. If there is no entry in wt.properties, then STANDARD is used as the delegate id
¿Fue esto útil?