Adding a tab to a properties view
You can add a tab to an existing Management Center properties view. The Management Center framework includes properties views for business users to use to create and update business objects.
Before you begin
If you are adding a tab to display property information for a custom business object, ensure that
you complete the following tasks. These tasks customize the persistence layer and business object
manager, which you must customize before you customize the Management Center user interface.
Procedure
- Open HCL Commerce Developer and switch to the Enterprise Explorer view.
- Expand component is the Management Center component. , where
-
Open the properties view definition file that defines the properties for the business object
that you want to change. Locate the definition that defines the tabs for the business object user
interface.
For example, to add a tab to the product properties view, the properties are defined in the
cmc/catalog/ProductProperties
definition in the ProductPropertiesView.xml file. The properties view definition files include the high level definition of the tabs and definitions that define the contents of each properties view tab. -
Add a
<PropertyTabPane>
element within the definition to add a tab to the user interface for managing the business object.Specify the name and text label for the tab within the element.For example, the following code snippet defines the addition of a pricing information tab for products.<!-- Tab: Pricing. This tab contains pricing information for a product. --> <PropertyTabPane name="productPricingTab" text="${catalogResources.productPricingTab}"> <!-- Property Pane: Pricing. This is includes the property pane definition that contains product pricing details. --> <PropertyPane baseDefinition="cmc/catalog/PricingTab"/> </PropertyTabPane>
-
Create a definition that defines the display of the property information that you want to
include in the new tab.
Include this definition in the appropriate definition file for the business object.For example, to define the properties for a new pricing tab for products, add the definition within the CatalogPropertyPane.xml definition file. As an example, the following code snippet defines the content to display in a new product pricing tab.
<PropertyPane definitionName="PricingTab"> <PropertyGroup baseDefinitionName="ManagePricingInformation"/> </PropertyPane>
- Save and publish your changes.