Creating a simple view mapping in BCC(With one tab on right panel of BCC)
To create simple view mapping, please follow the below steps. Providing the add-items, as these can be executed in Dyn/admin, ViewMapping repository (/atg/web/viewmapping/ViewMappingRepository).
Step 1: Create "Attribute" for resource bundle ( Not required, if your RDF doesn't contain Resource-Bundle)
<add-item item-descriptor="attributeValue" id="MYAvRESBnd">
<set-property name="value"><![CDATA[/my/Resources]]></set-property>
</add-item>
Step 2: Create "Attribute" for Category name used in RDF.
<add-item item-descriptor="attributeValue" id="MYAvAddressGenCat">
<set-property name="value"><![CDATA[BasicInfo]]></set-property>
</add-item>
from RDF: category-resource="BasicInfo"
Step 3: Create itemViewMapping for Tab.
<add-item item-descriptor="itemViewMapping" id="MYIvmAddressGeneral">
<set-property name="name"><![CDATA[AssetManager Address general itemViewMapping]]></set-property>
<set-property name="displayName"><![CDATA[Address Details]]></set-property>
<set-property name="view"><![CDATA[AmIvDef]]></set-property>
<set-property name="attributeValues"><![CDATA[includedCategories=MYAvAddressGenCat,resourceBundle=MYAvRESBnd]]></set-property>
</add-item>
Step 4: Create itemMapping for item-desctiptor of RDF.
<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="viewMappings"><![CDATA[MYIvmAddressGeneral]]></set-property>
</add-item>
Right Panel of Asset Editor |
0 comments:
Post a Comment