Class PickerSearchAttributeList

java.lang.Object
wt.query.SearchAttributeList
com.ptc.windchill.cadx.common.picker.PickerSearchAttributeList
All Implemented Interfaces:
PickerSearchAttributeListDelegate, Externalizable, Serializable, wt.query.SearchAttributeListDelegate

public class PickerSearchAttributeList extends wt.query.SearchAttributeList implements PickerSearchAttributeListDelegate, Externalizable
This class is used to set the drop down list, search criteria, and search result columns for HTML Picker. The class reuses the search attribute list configured for HTML Local Search. See: wt.query.SearchAttributeList. This allows the use of this picker with the configured search list. This avoids thee need to create a new picker specific attribute list each time the HTML Local Search is customized. This class adds additional functionality by implementing functionality specified by PickerSearchAttributeListDelegate. The additional functions are required by the HTML picker. The functionality allows for reuse of this class to create different sets of pick lists, allow for filtering of EPMDocuments to a specific authoring application, and provides a list of class names. To use this list set the following property in wt.properties: com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList=STANDARD If this property is not set then the default is STANDARD. Also set the following entry in com/ptc/windchill/cadx/common/picker/picker.properties to: wt.services/svc/default/com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate/STANDARD/java.lang.Object/0=com.ptc.windchill.cadx.common.picker.PickerSearchAttributeList/duplicate To customize and change the drop down type list, search criteria, and search result columns in the picker: a) either change search attribute list configured for the local integrated search (NOTE: This effects the local search and the picker.) or b) doe the following which only effects the picker: 1. Sub-class this class and change the setLocale method to use different lists. Two constructors will also be required. Follow the example of wt.query.SearchAttributeList. 2. Add an entry into com/ptc/windchill/cadx/common/picker/picker.properties similar to: wt.services/svc/default/com.ptc.windchill.cadx.common.picker.PickerSearchAttributeListDelegate/MINE/java.lang.Object/0=mine.MyPickerSearchAttributeList/duplicate 3. Add/Change the entry in the wt.properties to: com.ptc.windchill.cadx.common.picker.pickerSearchAttributeList=MINE NOTE: This class assumes that the set of query values specified in wt.query.queryResource will be reused and appended to by the search attribute list configured for HTML Local search. In addition this class assumes that the query value for managed baselines is the value specified in com.ptc.windchill.pdmlink.search.searchResource If this is not the case then this class can not be used as the configured picker search attribute list. A new picker search atrribute list will have to be created and configured as described above. This class also assumes that the syntax used to describe the sort attributes is "1" for sortable and "0" for not sortable.

Supported API: true

Extendable: true
See Also: