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 , where component is the name of the Management Center component.
-
Open the object definition file that includes the display name for the business object that you
want to change.
Within the definition file, the
displayNamePropertyanddisplayNameObjectPathattributes define the display name for the business object. -
Edit the
displayNamePropertyanddisplayNameObjectPathattributes to change the display name for the object.For example, by default, the display name property for sales categories is theidentifierproperty. 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}" ... >identifiervalue to be the name of the category, change the value for thedisplayNamePropertyattribute to be"name". Set thedisplayNameObjectPathattribute 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.