Feature Pack 5

Define the properties view for a folder

Feature Pack 5

In this lesson, you are creating the properties view for your folders. A properties view shows all details about an object. The properties view you create is used to display the descriptive information of a folder in Management Center.

Feature Pack 6 or laterAttention: This tutorial is based on the folder support that is included in Feature Pack 5 and is not recommended if you are on a newer feature pack level. Beginning with Feature Pack 6, support is provided by default for grouping e-Marketing Spots, activities, customer segments, marketing content, promotions, and attribute dictionary attributes. This support includes the capability of creating, changing, and deleting folders within the Management Center Catalogs, Marketing, and Promotions tools. You are not able to group folders created by following this tutorial with folders that are created by using Management Center. If you create Management Center folders by following the steps included in this tutorial, delete those folders before you create folders by using Management Center. For more information about folders, see Folders.

Feature Pack 7 or laterSupport is provided by default for grouping content pages and layouts in the Commerce Composer tool. This support includes creating, changing, and deleting folders with the Commerce Composer tool.

About this task

A Management Center properties view displays the details for a business object. For example, the properties view for your EMarketingSpotFolder displays all of the information for that folder in the main work are in Management Center. Within the properties view for an e-Marketing Spot folder you can view the name, description and parent folder information for a folder.

For more information about defining the properties view, see defining the properties view for a business object.

Procedure

  1. Navigate to LOBTools > WebContent > config > commerce > marketing > propertiesViews
  2. Right-click propertiesViews; click New > File
  3. For the File name, enter EMarketingSpotFolderPropertiesView.def, click Finish.
  4. Open the EMarketingSpotFolderPropertiesView.def for editing, and add the following code into the file:
    <?xml version="1.0" encoding="UTF-8"?>
     
    <!--
                Defines the properties page for E-Marketing Spot folders.
                This properties page shows the folder identifier, description,etc.
           -->
    <Definitions>
          <ObjectProperties definitionName="extEMarketingSpotFolderProperties">
                <PropertyPane name="EMarketingSpotFolderPane">
                      <PropertyGroup baseDefinitionName="wcfPropertyAssetInformationGroup" name="assetGroup"/>
                      <PropertyGroup groupTitle="${extMarketingResources.EMarketingSpotFolder_newEMarketingSpotFolderProperties}" name="EMarketingSpotFolderPropertiesGroup" open="true">
                            <PropertyInputText name="identifier" promptText="${extMarketingResources.EMarketingSpotFolder_name}" propertyName="identifier" required="true"/>
                            <PropertyInputMultiLineText promptText="${extMarketingResources.EMarketingSpotFolder_description}" propertyName="description"/>
                            <ReferenceEditor promptText="${extMarketingResources.EMarketingSpotFolder_parentFolder}" headerText="${extMarketingResources.EMarketingSpotFolder_name}" helpText="${extMarketingResources.EMarketingSpotFolder_parentFolder_helpText}" minWidth="460" name="parentFolderRefEditor" parentObjectTypes="EMarketingSpotFolder,InheritedEMarketingSpotFolder" referenceObjectTypes="EMarketingSpotFolderReference,InheritedEMarketingSpotFolderReference"/>                             
                      </PropertyGroup>                   
                </PropertyPane>
          </ObjectProperties>    
    </Definitions>
  5. Save your changes.

Results

The preceding code sample defines a properties view for an e-Marketing Spot folder, which consists of the folder identifier, administrative description, and parent folder name.