Making ID property editable in BCC- Custom Repository
To make ID property editable in BCC, please follow below steps.
Step 1: Create Attribute with value "true".
<add-item item-descriptor="attributeValue" id="MYAvAddrsEditId">
<set-property name="value"><![CDATA[true]]></set-property>
</add-item>
Step 2: Update the existing ItemMapping, else create new.
<update-item item-descriptor="itemMapping" id="MYImAddress">
<set-property name="attributes"><![CDATA[showCreationId=MYAvAddrsEditId]]></set-property>
</update-item>
OR
<add-item item-descriptor="itemMapping" id="MYImAddress">
<set-property name="name"><![CDATA[AssetManager]]></set-property>
<set-property name="description"><![CDATA[AssetManager Address itemMapping]]></set-property>
<set-property name="mode"><![CDATA[AmMmDef]]></set-property>
<set-property name="itemPath"><![CDATA[/my/Address]]></set-property>
<set-property name="itemName"><![CDATA[address]]></set-property>
<set-property name="formHandler"><![CDATA[AmFhDef]]></set-property>
<set-property name="attributes"><![CDATA[showCreationId=MYAvAddrsEditId]]></set-property>
</add-item>
Id Editable |
Indeed an informative article.
ReplyDeletei followed the same steps but ended up screwing my UI, the UI is not loading now when i create a new asset of my custom repository.
I added the following 2 items through dyn/admin. But i feel there should more related to property mapping or so? any ideas if anything else also needs to be done. i am using ATG10.2
not sure why its not allowing me to post the add-item here, but i just did what s mentioned in your post added true for attribute value and then created a new item mapping just as you mentioned above. I have the item in product catalog with a new item-descriptor.
DeleteI might have to examine your view-mapping add items and custom item descriptor that you have written in ProductCatalog. You can mail me on my gmail (iranna123@gmail.com) . I will verify and let you about the same.
DeleteRegards,
Iranna
Please see my query with full details on oracle forum
ReplyDeletehttps://forums.oracle.com/thread/2612716
Thanks a lot!
I have replied in same forum. Try it.
DeleteThis is not working for me. Is something like, it will work for OOTB repositories only?
ReplyDelete