Showing posts with label Editing OOTB ID property in BCC. Show all posts
Showing posts with label Editing OOTB ID property in BCC. Show all posts

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