Update the write usage of the object definition with the new usage
In this lesson, you change the writeUsage value to use the new write usage in the object definition of the primary object.
About this task
BaseSearchTermAssociationsPrimaryObjectDefinition
.Procedure
- Open HCL Commerce Developer.
- In the Enterprise Explorer view, navigate to .
- Open the SearchTermAssociationsPrimaryObjectDefinition.xml file for editing.
-
Locate the writeUsage parameter by searching for the following code.
The code resembles the following code block:
<PrimaryObjectDefinition definitionName="cmc/catalog/BaseSearchTermAssociationsPrimaryObjectDefinition" displayName="${catalogResources.SearchTermAssociations}" displayNameProperty="name" headerIcon="searchTermAssociationsHeaderIcon" helpLink="concepts/cpnsearchass.htm" icon="searchTermAssociationsIcon" idProperty="catalogId" isBaseDefinition="true" propertiesDefinition="cmc/catalog/SearchTermAssociationsProperties" searchType="FindSearchTermAssociations" writeUsage="IBM_ManageCatalog">
-
Change the writeUsage parameter to
EXT_ManagerSearchTermAssociation so that the code resembles the following
code block.
<PrimaryObjectDefinition definitionName="cmc/catalog/BaseSearchTermAssociationsPrimaryObjectDefinition" displayName="${catalogResources.SearchTermAssociations}" displayNameProperty="name" headerIcon="searchTermAssociationsHeaderIcon" helpLink="concepts/cpnsearchass.htm" icon="searchTermAssociationsIcon" idProperty="catalogId" isBaseDefinition="true" propertiesDefinition="cmc/catalog/SearchTermAssociationsProperties" searchType="FindSearchTermAssociations"
writeUsage="EXT_ManageSearchTermAssociation"
>