Making ID property editable in BCC- OOTB Repository

Making ID property editable in BCC- OOTB Repository


To make ID property editable in BCC, please follow below steps. We will make Category ID to be editable.

Note: ID property is editable ONLY when item is being created first time using BCC.

Step 1: Print itemMapping for Category Item in Dyn/admin.
<print-item item-descriptor="itemMapping" id="AmImCat" />


------ Printing item with id: AmImCat
<add-item item-descriptor="itemMapping" id="AmImCat">
  <set-property name="itemName"><![CDATA[category]]></set-property>
  <set-property name="description"><![CDATA[DCS-UI category itemMapping]]></set-property>
  <set-property name="attributes"><![CDATA[resourceBundle=AmAvCatBnd]]></set-property>
  <set-property name="mode"><![CDATA[AmMmDef]]></set-property>
  <set-property name="viewMappings"><![CDATA[AmIvmCatGen,AmIvmCatMedia,AmIvmCatPrdt,AmIvmCatAdv]]></set-property>
  <set-property name="formHandler"><![CDATA[AmFhDef]]></set-property>
  <set-property name="itemPath"><![CDATA[/atg/commerce/catalog/ProductCatalog]]></set-property>
  <set-property name="name"><![CDATA[AssetManager]]></set-property>
</add-item> 


Step 2: Create new attribute with value "true".
<add-item item-descriptor="attributeValue" id="MYAvCatEditId">
 <set-property name="value"><![CDATA[true]]></set-property>
</add-item>


Step 3: Update the existing item-Mapping.
<update-item item-descriptor="itemMapping" id="AmImCat">
 <set-property name="attributes"><![CDATA[resourceBundle=AmAvCatBnd,showCreationId=MYAvCatEditId]]></set-property>
</update-item>


Category Id Editable

2 comments:

  1. Hello and thank you for this information. I have a custom item whose id is a composite of two other properties which are components. I’m able to manage this perfectly in the ACC, but in the BCC, the component properties don’t show up at all. I tried the showCreationId attribute above, but all I see is the composite key and I’m not able to select the components. Any suggestions? Again, thanks.

    ReplyDelete
    Replies
    1. Hi Roland,

      Could you please mail item descriptor part to iranna123@gmail.com.

      As far I know, showCreationId holds good till String property. Let me analyse the item descriptor and answer better.

      Thanks,
      Iranna

      Delete