How to hide a user property in ATG BCC UI using ViewMappingRepository

282 views Asked by At

I am new to ViewMappingRepository. I need to hide one user property in ATG BCC user screen tab. how to hide the property? .

<property name="lastPurchasedCost" data-type="string" display-name="Last Purchased Cost" />
1

There are 1 answers

0
Justin On

First need to create a new attribute value for hide a property in ViewMappingRepository.

<add-item item-descriptor="attributeValue" id="AmAvHideUsersGeneralProp">
  <set-property name="value"><![CDATA[lastPurchasedCost]]></set-property>
</add-item>

My property is shown under the user general category. So print that category ItemViewMapping and update your created new attributeValue id set to excludedProperties value.

<add-item item-descriptor="itemViewMapping" id="AmIvmUsersGeneral">
  <set-property name="attributeValues"><![CDATA[excludedProperties=AmAvHideUsersGeneralProp]]></set-property>
</add-item>

Note: If already set any of the attributeValue to excludedProperties you need to add only you property name to the existing attributeValue inside set-property value.