cancel
Showing results for 
Search instead for 
Did you mean: 

How to make an attribute non editable in Product Cockpit perspective of backoffice in 1811

0 Kudos

We have a few attributes in PCM, which we want to make as non-editable attributes. We are using 1811 version.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor
0 Kudos

You can add the following custom property for these attributes:

 <custom-properties>
     <property name="readOnlyForUI">
         <value>Boolean.TRUE</value>
     </property>
 </custom-properties>

Please check core-items.xml for some examples.

Alternatively, you can import the following ImpEx:

 INSERT_UPDATE AttributeDescriptor;qualifier[unique=true];enclosingType(code)[unique=true];readOnlyForUI 
 ;the-attribute-qualifier;the-itemtype;TRUE

Note: Change the-attribute-qualifier and the-itemtype with your attribute and itemtype.

For example, the following ImpEx will make the attribute, name (displayed with the label, Identifier) readOnly (non-editable) for all users, including admin:

 INSERT_UPDATE AttributeDescriptor;qualifier[unique=true];enclosingType(code)[unique=true];readOnlyForUI 
 ;name;Product;TRUE

Answers (0)