Removing a customer segment attribute from Management Center

If there are certain customer segment attributes that your site does not use or support, you can remove those attributes from the user interface. This way, business users can no longer see the attribute when working with customer segments.

About this task

All of the tabs in the customer segment properties view, such as the Demographics tab and the Address tab, are defined by the following file:
WebSphere Commerce Version 7.0.0.0Feature Pack 1CustomerSegmentPropertiesView.lzx
WebSphere Commerce Version 7.0.0.0Feature Pack 1For each tab, this file specifies the instance of the properties class for the customer segment attributes that display on the tab. To remove a customer segment attribute, you edit the CustomerSegmentPropertiesView.lzx file directly, and then either delete or comment out the instance of the properties class.

For example, to remove the Age group attribute from the Demographics tab, remove <mktAgeGroupProperties/> from the CustomerSegmentPropertiesView.lzx file.

Introduced in Feature Pack 2CustomerSegmentPropertiesView.def
Introduced in Feature Pack 2For each tab, this file includes the property group definition for the customer segment attributes that display on the tab. To remove a customer segment attribute, you edit the CustomerSegmentPropertiesView.def file directly, and then either delete or comment out the property group element.

For example, to remove the Age group attribute from the Demographics tab, remove <PropertyGroup baseDefinitionName="mktCurrentAgeProperties"/> from the CustomerSegmentPropertiesView.def file.

Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
  2. Complete one of the following steps:
    • WebSphere Commerce Version 7.0.0.0Feature Pack 1In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > propertiesViews.
    • Introduced in Feature Pack 2In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > propertiesViews.
  3. Open the customer segment properties view file in an editor:
    OptionDescription
    WebSphere Commerce Version 7.0.0.0Feature Pack 1CustomerSegmentPropertiesView.lzx WebSphere Commerce Version 7.0.0.0Feature Pack 1
    1. Find the instance of the properties class that represents the customer segment attribute you want to remove.
    2. Comment out or delete the instance of the properties class. For example, to comment out the Age group attribute so that it no longer displays on the Demographics tab, modify the line as shown in bold in this example:
      <wcfPropertyTabPane name = "demoTab" text = "${mktMarketingResources.csDemographicsTab.string}">
          <wcfPropertyPane>
              <wcfPropertyGroup name = "demoGroup" collapsable = "false" displayGrouping = "true">
                  <mktGenderProperties/>
                  <mktCurrentAgeProperties/>
                  <!--  <mktAgeGroupProperties/>   -->
                  <mktIncomeGroupProperties/>
                  <mktMaritalStatusProperties/>
                  <mktChildrenProperties/>
                  <mktHouseholdProperties/>
              </wcfPropertyGroup>
          </wcfPropertyPane>
      </wcfPropertyTabPane>
    3. Save and close the file.
    Introduced in Feature Pack 2CustomerSegmentPropertiesView.def Introduced in Feature Pack 2
    1. Find the PropertyGroup element that represents the customer segment attribute you want to remove.
    2. Comment out or delete the PropertyGroup element. For example, to comment out the Age group attribute so that it no longer displays on the Demographics tab, modify the line as shown in bold in this example:
      <PropertyTabPane name="demoTab" text="${mktMarketingResources.csDemographicsTab}">
         <PropertyPane>
            <PropertyGroup collapsable="false" displayGrouping="true" name="demoGroup">
               <PropertyGroup baseDefinitionName="mktGenderProperties"/>
               <!-- <PropertyGroup baseDefinitionName="mktCurrentAgeProperties"/> -->
               <PropertyGroup baseDefinitionName="mktAgeGroupProperties"/>
               <PropertyGroup baseDefinitionName="mktIncomeGroupProperties"/>
               <PropertyGroup baseDefinitionName="mktMaritalStatusProperties"/>
               <PropertyGroup baseDefinitionName="mktChildrenProperties"/>
               <PropertyGroup baseDefinitionName="mktHouseholdProperties"/>
            </PropertyGroup>
         </PropertyPane>
      </PropertyTabPane>
    3. Save and close the file.

What to do next

After you complete your customization:
Version Steps
  1. Right-click LOBTools Project; then click Build OpenLaszlo Project to produce an updated ManagementCenter.swf file under the workspace_dir\LOBTools\WebContent directory. This setting is the default environment setting.
  2. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  3. Deploy your changes to your production environment.
Introduced in Feature Pack 2
  1. Test your changes by viewing them in the Management Center, using this URL: https://hostname:8000/lobtools.
  2. Deploy your changes to your production environment.