Moving content from one properties view tab to a new tab

You can move the contents from an existing tab in the properties view for a business object to a new tab.

Procedure

  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. Expand LOBTools > WebContent > WEB-INF > src > xml > commerce > component > propertiesViews, where component is the Management Center component.
  3. 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.
  4. 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>
    
    
  5. Remove the existing properties view definition that defines the original display of the property information that you moved.
    For example, to remove the display of product pricing information from an existing tab, remove the following definition from the CatalogPropertyPane.xml definition file.
    
    <PropertyGroup definitionName="cmc/catalog/ManagePricingInformation" groupTitle="${catalogResources.pricingSection}">
      <dependency localName="catalogResources" moduleName="cmc/catalog/CatalogResources"/>
      ...
      </PropertyGroup>
    </PropertyGroup>
    
  6. Within the same properties view file, create a definition that defines the new display of the property information that you moved to a new tab.
    For example, the following code snippet defines the new display for the product pricing tab.
    
    <PropertyPane definitionName="PricingTab">
      <PropertyGroup baseDefinitionName="ManagePricingInformation"/>
    </PropertyPane>