A propertyViewMapping identifies the propertyView used to render a specific property, or a component property if the property type is a collection. A propertyViewMapping can override propertyView attributes when the default settings are inappropriate.
Item Descriptor Definition
The propertyViewMapping
item descriptor is defined as follows in ViewMapping.xml
:
<item-descriptor name="propertyViewMapping" id-space-names="viewmapping" display-property="description" query-cache-size="300"> <table name="vmap_pvm" type="primary" id-column-name="id"> <property name="id" data-type="string"/> <property name="description"/> <property name="propertyView" column-name="pview_id" item-type="propertyView"/> <property name="componentPropertyView" column-name="cpview_id" item-type="propertyView"/> </table> <!-- attributeValues property --> <table name="vmap_attrval_rel" type="multi" id-column-name="mapper_id" multi-column-name="name"> <property name="attributeValues" column-name="attribute_id" data-type="map" component-item-type="attributeValue" cascade="update,delete"/> </table> <!-- componentAttributeValues property --> <table name="vmap_cattrval_rel" type="multi" id-column-name="mapper_id" multi-column-name="name"> <property name="componentAttributeValues" column-name="attribute_id" data-type="map" component-item-type="attributeValue" cascade="update,delete"/> </table> </item-descriptor>
propertyViewMapping Properties
propertyViewMapping properties include the following:
Property | Description |
---|---|
| Display name for this item |
| Optional reference to a propertyView item. If omitted, the propertyViewMapping uses the default propertyView. |
| Optional reference to a propertyView item for component properties, if this mapping refers to a collection type. |
| Optional key/value pairs that affect the |
| Optional key/value pairs that affect the componentPropertyView. |