Skip to Content

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 03, 2019 at 01:03 PM

    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
    
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.