Develop > Presentation layer > Management Center framework > Customize the Management Center user interface > Customizing an existing Management Center tool > Catalogs tool
Changing custom fields labels
You can change the labels of custom fields. The product properties Manage Product tab contains a Custom section. In this section, you can change the field labels, or help text to suit the business needs.
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 > catalog > propertiesViews.
- Modify the CatalogPropertyPane.lzx file to change the section name, field label, and information help text.
- Open the CatalogPropertyPane.lzx file for editing.
- Change the section name by identifying the property group to work with.
- Locate the wcfPropertyGroup tag that controls the name of the Custom section.
<class extends="wcfPropertyGroup" 1 groupTitle="${catalogResources.additionalInformationSection.string}" name="catManageAdditionalInformation" open="false">The value of the groupTitle attribute controls the name of the Custom section.
To change the section name, change the value of the groupTitle attribute using the resource bundle to define the text for user interface.
- Change the field label and information help text by identifying the property widget label to work with. For example, to change the label and information help text for Field1 widgets:
- Locate the wcfPropertyStepper tag that controls the Field 1 (Integer) label and information help text.
<!-- Property: Field 1. A custom input box for the catalog entry property. --> <wcfPropertyStepper minimumValue="-2147483648" maximumValue="2147483647" objectPath="CatalogEntryExtraProperties" 1 promptText="${catalogResources.catalogEntryExtraPropertiesField1_DisplayName.string}" propertyName="xprop_field1" 2 extendedHelpText="${catalogResources.extendedHelpText_field1.string}"/>To change the label and information help text, change the value of the promptText attribute and extendedHelpText attribute using a resource bundle to define the text for user interface.
- Repeat the previous substep for the other fields: Field 2 (Integer), Field 3 (Decimal), Field 4 (Text), and Field 5 (Text).
- Save the changes.
- Modify the CatalogEntryGrid.lzx file to change the name of the fields in the grid.
- Open the CatalogEntryGrid.lzx for editing.
- Change the field name in the grid. For example, to change the grid name for Field1:
- Locate the wcfGridStepper tag that controls Field 1 name in grid.
<wcfGridStepper name="xprop_field1" minimumValue="-2147483648" maximumValue="2147483647" objectPath="CatalogEntry/CatalogEntryExtraProperties" propertyName="xprop_field1" 1 text="${catalogResources.productField1_ColumnHeader.string}" visible="false" width="120"/>To change the field name in the grid, change the value of the text attribute using a resource bundle to define the text for user interface.
- Repeat the previous substep for the other fields: Field 2 (Integer), Field 3 (Decimal), Field 4 (Text), and Field 5 (Text).
- Save the changes.
- Restart the test server.
What to do next
- 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