Solution
Use Type Picker Common Component to display or for the assignment of type -able items.
Prerequisite knowledge
To understand this documentation, you need to have an understanding of the following:
• Basic development involving JSP, JavaScript and Custom taglibs
• The management of resource bundle files customizations
• Windchill xconfmanager concepts
• Windchill Type Identifiers
Solution Elements
Element
|
Type
|
Description
|
picker.tld
|
tld
|
Tag Library Descriptor (TLD) file, which contains Type Picker Tag definition
Run time Location:
<Windchill>\codebase\WEB-INF\tlds\
|
typePickerResource.java
|
Java
|
You should use this file to localize the contents of the Type Picker pop up.
|
<your_page>.jsp
|
jsp
|
Your TypePicker Common Component implementation containing jsp file.
|
wt.properties
|
properties
|
You can define ‘wt.typepickerexclude’ property here
Run time Location:
<Windchill>\codebase\wt.properties
|
The solution is also addressed to these variations:
1. You want to specify that a container will display a particular subset of all types in a Type hierarchy.
2. You want to specify filtering criteria on the types shown, including criteria on custom subclasses.
3. You want to specify the root/base types (OOTB or custom) to be used.
4. You want to include a type picker that will be launched as a dropdown or table/tree popup menu.
5. You want to specify whether or not non-instantiable types are to be presented for picking
Procedure – Configuring Type Picker Common Component
1. Include necessary artifacts.
You should include the necessary artifacts in your configuring jsp file e.g. “/netmarkets/jsp/begin.jspf” or “/netmarkets/jsp/beginPopuf.jspf” file and “/netmarkets/jsp/end.jspf” file. You also need to declare picker taglib directive. (uri=”http://www.ptc.com/windchill/taglib/picker”)
2. Configure Type Picker.
<%@ taglib uri="http://www.ptc.com/windchill/taglib/picker" prefix="p"%>
<%@ include file="/netmarkets/jsp/util/begin.jspf"%>
----
----
<!-- TYPE PICKER CONFIGURE START -->
< p:typePicker id="typePickerTest" label="Type : " mode="SEARCH" >
<p:pickerParam name="seedType" value="wt.epm.EPMDocument" />
<p:pickerParam name="type" value="BOTH" />
<pr:pickerParam name="displayHierarchy" value="false" />
<p:pickerParam name="showRoot" value="true" />
</p:typePicker>
<!-- TYPE PICKER CONFIGURE END -->
----
----
<%@ include file="/netmarkets/jsp/util/end.jspf"%>