Changing the display name for a business object
The Management Center framework uses the display name of a business object to
identify the object when that object displays in Management Center. The display name for an
object can display in the explorer view, utilities view, list views, and properties
views.
Procedure
- Open HCL Commerce Developer and switch to the Enterprise Explorer view.
- Expand component is the name of the Management Center component. , where
-
Open the object definition file that includes the display name for the business object that you
want to change.
Within the definition file, the
displayNameProperty
anddisplayNameObjectPath
attributes define the display name for the business object. -
Edit the
displayNameProperty
anddisplayNameObjectPath
attributes to change the display name for the object.For example, by default, the display name property for sales categories is theidentifier
property. The following code snippet shows the default attribute settings for this display name property.
To change the display name from the<PrimaryObjectDefinition definitionName="cmc/catalog/BaseSalesCatalogGroupPrimaryObjectDefinition" detailsViewHeaderText="${catalogResources.UtilityPaneHeaderText}" displayName="${catalogResources.salesCategory_DisplayName}"
displayNameProperty="identifier"
newDisplayName="${catalogResources.salesCategory_NewDisplayName}" ... >identifier
value to be the name of the category, change the value for thedisplayNameProperty
attribute to be"name"
. Set thedisplayNameObjectPath
attribute with a value of"CatalogGroupDescription"
.<PrimaryObjectDefinition definitionName="cmc/catalog/BaseSalesCatalogGroupPrimaryObjectDefinition" detailsViewHeaderText="${catalogResources.UtilityPaneHeaderText}" displayName="${catalogResources.salesCategory_DisplayName}"
displayNameProperty="name" displayNameObjectPath="CatalogGroupDescription"
newDisplayName="${catalogResources.salesCategory_NewDisplayName}" ... > - Optional:
If you need to also change the display name that displays in the utilities view for the
business object, update the search grid definition for the object.