cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

How to restrict type from dropdown (or TypePicker ) when creating new document?

netaji.mohite
5-Regular Member

How to restrict type from dropdown (or TypePicker ) when creating new document?

Hello Everyone,

I am trying to restrict some softtype from dropdown list when creating new documents.

Can you please tell me how to restrict the types?

FYR : 

1. File Name : createDocumentSetTypeAndAttributesWizStep.jsp

<jca:configureTypePicker>
<p:pickerParam name="filterType" value="wt.doc.WTDocument|com.ptc.InterferenceDetectionDefinition"/>

</jca:configureTypePicker>

 

above line will work for OOTB document type and won't show "Interference Detection Definition"  document  type in dropdown list.

 

but won't for custom type as like below example :

<jca:configureTypePicker>
<p:pickerParam name="filterType" value="wt.doc.WTDocument|com.ptc.InterferenceDetectionDefinition"/>

<p:pickerParam name="filterType" value="wt.doc.WTDocument|ext.test.softType|ext.test.softTypeTest"/>

</jca:configureTypePicker>

 

If someone knows please share how to achieve this?

 

Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @netaji.mohite 

Can you share what wizard do you try to customize?

Or do you create own wizard ? 

 

The OOTB option is setting the instantiable parameter in type and attribute management and it has to work OOTB. @Fadel has described how to do so. 

If the setting does not work then I guess you customize something that does not work properly. 

 

PetrH

View solution in original post

8 REPLIES 8
Fadel
22-Sapphire I
(To:netaji.mohite)

set that type as non-instantiable in type and attribute manager 

Fadel_0-1701331705701.png

PS this will also hide the type from policy administrator 

 

Fede
netaji.mohite
5-Regular Member
(To:Fadel)

 

Thanks @Fadel 

Tried this to set  non-instantiable, but no works.

Still the type is visible in dropdown list.

Fadel
22-Sapphire I
(To:netaji.mohite)

What version are you using, are you sure you have save after editing the type ?

Fede
netaji.mohite
5-Regular Member
(To:Fadel)

Yes, Saved.

 

using Windchill Version : 10.2 M030-CPS22

Fadel
22-Sapphire I
(To:netaji.mohite)

it works on my side  

Fede
netaji.mohite
5-Regular Member
(To:Fadel)

Yes, i got it. Did the same from UI but no luck.

also trying to do filter in jsp file as below : 

<jca:configureTypePicker>
<p:pickerParam name="filterType" value="wt.doc.WTDocument|ext.test.test123"/>

</jca:configureTypePicker>

 

Fadel
22-Sapphire I
(To:netaji.mohite)

I have set up an 10.2 system , the instantiable setting works :

Kindly share some screenshot and I join @HelesicPetr , you must have some customization that is interfering  

Fede

Hi @netaji.mohite 

Can you share what wizard do you try to customize?

Or do you create own wizard ? 

 

The OOTB option is setting the instantiable parameter in type and attribute management and it has to work OOTB. @Fadel has described how to do so. 

If the setting does not work then I guess you customize something that does not work properly. 

 

PetrH

Top Tags