Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Customizing an existing Management Center tool
Changing the display name for a business object
The Management Center framework uses the display name of a business object when that business object is shown in the Management Center user interface. For example, business object display names are used in tree node labels and properties view titles.
To change the display name for a business object:
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > Management_Center_component > objectDefinitions, where Management_Center_component is the name of the tool to customize. The characteristics of business objects are defined in the wcfObjectDefinition class. The displayNameProperty and displayNameObjectPath attributes identify the business object property that the Management Center framework uses as the business object display name.
- Update the displayNameProperty and displayNameObjectPath attributes to change the display name property. For example, the default property used as the display name for Catalog categories is identifier. The following code snippet shows the default attribute settings for this display name property:
<class name="catBaseCatalogGroupPrimaryObjectDefinition" extends="wcfPrimaryObjectDefinition" isBaseDefinition="true" displayNameProperty="identifier" ...To change the display name from identifier to the name of the category, change the displayNameProperty attribute to name and set the displayNameObjectPath attribute to CatalogGroupDescription.
<class name="catBaseCatalogGroupPrimaryObjectDefinition" extends="wcfPrimaryObjectDefinition" isBaseDefinition="true" displayNameProperty="name" displayNameObjectPath="CatalogGroupDescription" ...
What to do next
After you complete the customization:
- Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This is the default environment setting.
- Test the changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
- Deploy your changes to the production environment.
Related concepts
Management Center user interface
Related tasks
Changing the text style of labels