Skip to main content
5-Regular Member
Nov 30, 2023 7:19 AM UTC
Solved

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.

 

 

HelesicPetr
22-Sapphire II
Nov 30, 2023 8:43 AM UTC

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

8 replies

Fadel
23-Emerald II
Nov 30, 2023 8:09 AM UTC

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 

 

Translate
Buiꓘa
5-Regular Member
Nov 30, 2023 8:19 AM UTC

 

Thanks @Fadel 

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

Still the type is visible in dropdown list.

Translate
Fadel
23-Emerald II
Nov 30, 2023 8:20 AM UTC

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

Translate
Buiꓘa
HelesicPetr
22-Sapphire II
Nov 30, 2023 8:43 AM UTC

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

Translate