Skip to main content
5-Regular Member
November 30, 2023
Solved

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

  • November 30, 2023
  • 2 replies
  • 2358 views

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.

 

 

Best answer by HelesicPetr

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

2 replies

Fadel
23-Emerald I
November 30, 2023

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 

 

Buiꓘa
5-Regular Member
November 30, 2023

 

Thanks @Fadel 

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

Still the type is visible in dropdown list.

Fadel
23-Emerald I
November 30, 2023

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

Buiꓘa
HelesicPetr
22-Sapphire II
22-Sapphire II
November 30, 2023

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