Tutorials > Management Center > Track and displaying the most viewed recipes

< Previous | Next >


Customize Management Center to support creating a new Web activity for most viewed recipes

In this lesson, you customize the Management Center Marketing tool to add the custom action. After you complete this lesson, you can create a Web activity with the customized action.

You must complete Tutorial: Adding a Recipes tool to the Management Center before you can begin this lesson.


Procedure

  1. Extend the resource bundle and properties files.

    In this step, we will extend the properties file that contains text for the customization. A properties file is a resource bundle that contains translatable text that displays in the user interface. Resource bundles contain locale-specific objects. By using resource bundle files, the text can be translated into different languages.

    1. Extend the Recipe properties file.

      1. In the Enterprise Explorer view, navigate to LOBTools > Java Resources:src > com.mycompany.recipe.client.lobtools.properties.

      2. Open RecipeLOB.properties.

      3. Add the following code to the file:

        #recipe top viewed ranking
        mostBrowsedRecipeRankingName=Display Recipe Top Browsed
        
        rankingSize=Maximum number
        rankingIntervalNum=Time frame in days
        rankingLocation=Display
        
        rankingLocationSpecificRecipeCollection=Display a list for the specified recipe collection
        rankingLocationCurrentRecipeCollection=Display a list for the specified recipe collection only when the customer is browsing the recipe collection
        rankingLocationCurrentOrSubRecipeCollection=Display a list for the specified recipe collection only when the customer is browsing the recipe collection or its subcollections
        
        recipeRankingTopBrowsedSummary=List the top {0} browsed recipe in the last {2} days in the following recipe collection: {1} 
        summaryRecipeRankingLocationSpecificRecipeCollection=Display a list for the specified recipe collection
        summaryRecipeRankingLocationCurrentRecipeCollection=Display a list for the specified recipe collection only when the customer is browsing the recipe collection
        summaryRecipeRankingLocationCurrentOrSubRecipeCollection=Display a list for the specified recipe collection only when the customer is browsing the recipe collection or its subcollections
        
        help_recipetopbrowsed_recipe_collection=Specify the recipe collection for which to display a list of recipe top browsed. You can specify more than one collection; however, this makes sense only if you choose one of the
        <b>Display</b> options that require the customer to be viewing the recipe collection or its subcollections.
        help_recipetopbrowsed_size=Specify how many recipe to display in the recipe top browsed list.
        help_recipetopbrowsed_interval_num=Specify how many days' worth of browsing activity to base the recipe top-browsed list on. For example, if you specify 3, then the recipe top-browsed list is based on browsing that occurred within the last three days. 
        help_recipetopbrowsed_location=Specify whether the customer must be viewing the recipe collection to see the recipe top-browsed list. If you choose the option to display the list
        <i>only when the customer is viewing the recipe collection</i>, use e-Marketing Spots on the collection display page. If you choose the option to display the list
        <i>only when the customer is viewing the recipe collection or its subcollections</i>, use e-Marketing Spots on either the recipe collection display page or the recipe display page, or both.
        

    2. Register the new property in the resource bundle.

      1. In the Enterprise Explorer view, navigate to LOBTools > WebContent > WEB-INF > src > lzx > mycompany > recipe.

      2. Open RecipeManagementResourceBundle.lzx.

      3. Add the following code to the file:

        <!-- recipe top viewed ranking -->
        <wcfResourceBundleKey name="mostBrowsedRecipeRankingName"/>
                
                <wcfResourceBundleKey name="rankingSize"/>
                <wcfResourceBundleKey name="rankingIntervalNum"/>
                <wcfResourceBundleKey name="rankingLocation"/>
                
                <wcfResourceBundleKey name="rankingLocationSpecificRecipeCollection"/>
                <wcfResourceBundleKey name="rankingLocationCurrentRecipeCollection"/>
                <wcfResourceBundleKey name="rankingLocationCurrentOrSubRecipeCollection"/>
                
                <wcfResourceBundleKey name="recipeRankingTopBrowsedSummary"/>
                <wcfResourceBundleKey name="summaryRecipeRankingLocationSpecificRecipeCollection"/>
                <wcfResourceBundleKey name="summaryRecipeRankingLocationCurrentRecipeCollection"/>
                <wcfResourceBundleKey name="summaryRecipeRankingLocationCurrentOrSubRecipeCollection"/>
                
                <wcfResourceBundleKey name="help_recipetopbrowsed_recipe_collection"/>
                <wcfResourceBundleKey name="help_recipetopbrowsed_size"/>
                <wcfResourceBundleKey name="help_recipetopbrowsed_interval_num"/>
        <wcfResourceBundleKey name="help_recipetopbrowsed_location"/>
        

  2. Import and register the image resource file.

    In this step, we will define icons to represent the new action we customized for recipes. You can create and load three versions of a custom icon to represent the new campaign element in the Management Center user interface. These images help business users identify the element when creating activities in the Activity Builder.

    1. Import the image resource file.

      1. Right-click mycompany and select New > Folder.

      2. In the file name field, enter marketing and click Finish.

      3. Right-click marketing and select New > Folder.

      4. In the file name field, enter resources and click Finish.

      5. Right-click resources and select New > Folder.

      6. Create 3 new folders named dgm, hdr, and pal.

      7. Copy the corresponding image files into the corresponding folders from the extracted directory RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\resources.

    2. Register the image resource files.

      1. In the Enterprise Explorer view, navigate to LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing > resources.

      2. Right-click resources and select Import. Expand General and select File system.

      3. Click Next, the click Browse and navigate to RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\resources. Select the extMarketingManagementResources.lzx file. Click Finish to import the files.

    3. Register this file in the MarketingExtensionsLibrary.lzx file. The file is stored at the following path: LOBTools/WebContent/WEB-INF/src/lzx/commerce/marketing/. The line of code that references the new properties file should resemble the following snippet:

      <library>
      <include href="../../mycompany/marketing/resources/extMarketingManagementResources.lzx"/>
      </library>
      

    4. Right-click the LOBTools project and select Build OpenLaszlo Project.

  3. Create the object definition for the campaign element

    In this step, create a new object definition for the new campaign element to collect the input from the Management Center user interface. When business users enter data about the new campaign element in a marketing activity, the object definition persists the data in the following two tables: DMELEMENT and DMELEMENTNVP.

    1. Create a new object definition for the campaign element.

      1. Complete one of the following steps:

        • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing.

        • In the Enterprise Explorer view, expand LOBTools > WebContent > config > mycompany.

      2. Right-click one of the following directories and select New > Folder.

        • marketing

        • mycompany

      3. In the file name field, enter the following text and click Finish.

        • objectDefinitions

        • marketing/objectDefinitions

      4. Right-click the objectDefinitions folder and select Import. Expand General and select File system.

      5. Click Next, then click Browse and navigate to one of the following folders:

        • RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\objectDefinitions

        • RecipeTopBrowsedSource\LOBTools\WebContent\config\mycompany\marketing\objectDefinitions

      6. Select one of the following files and click Finish to import the file.

        • DisplayRecipeTopBrowsedFlowElementObjectDefinition.lzx

        • DisplayRecipeTopBrowsedFlowElementObjectDefinition.def

    2. Include the DisplayRecipeTopBrowsedFlowElementObjectDefinition.lzx file so that it is available for use.

      1. In the Enterprise Explorer view, navigate to LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing.

      2. Open MarketingExtensionsLibrary.lzx.

      3. Update the file to point to the customized file:

        <include href="../../mycompany/marketing/objectDefinitions/DisplayRecipeTopBrowsedFlowElementObjectDefinition.lzx"/>
        

    3. Register the new object definition in its parent definition.

      1. Complete one of the following steps:

        • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > objectDefinitions > activityBuilder.

        • In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > objectDefinitions > activityBuilder.

      2. Open one of the following files:

        • FlowPathElementObjectDefinition.lzx

        • FlowPathElementObjectDefinition.def

        File Procedure
        FlowPathElementObjectDefinition.lzx In this class file, create an instance of your new object definition as a child.

        1. Insert a line into the file, similar to the line in boldface within the following code snippet:

          <class name="mktBaseFlowPathElementObject"                         extends="wcfChildObjectDefinition"
          displayName="${mktMarketingResources.path.string}"
          isBaseDefinition="true">
          <!-- sample line for recipe top viewed ranking -->
          <mktDisplayRecipeTopBrowsedElementObject/>
          </class>
          

        2. Save the changes and close the file.
        FlowPathElementObjectDefinition.def In this definition file, add the new object definition.

        1. Insert a line into the file, similar to the line in boldface within the following code snippet:

          <ChildObjectDefinition definitionName="mktBaseFlowPathElementObject"
              displayName="${mktMarketingResources.path}" isBaseDefinition="true">
              ...
              <!-- recipe top viewed ranking -->
              <FlowElementObjectDefinition
                  baseDefinitionName="mktDisplayRecipeTopBrowsedElementObject"
                  package="mkt"/>
          </ChildObjectDefinition> 
          

        2. Save the changes and close the file.

    4. Right-click the LOBTools project and select Build Openlaszlo Project.

  4. Create the properties view for the campaign element.

    If the new campaign element requires input from business users, declare the widgets to capture that input. By doing this, you create the user interface, called the properties view, for the new campaign element. When you click the campaign element in the Activity Builder, the properties view for that campaign element displays below the work area.

    1. Create the properties view for the campaign element.

      1. Complete one of the following steps:

        • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing.

        • In the Enterprise Explorer view, expand LOBTools > WebContent > config > mycompany > marketing.

      2. Right-click marketing and select New > Folder.

      3. In the file name field, enter propertiesViews and click Finish.

      4. Complete one of the following steps:

        • Right-click the propertiesViews folder and select Import. Expand General and select File system.

        • Right-click the propertiesViews folder and select Import.

      5. Click Next, then click Browse and navigate to one of the following folders:

        • RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\propertiesViews

        • RecipeTopBrowsedSource\LOBTools\WebContent\config\mycompany\propertiesViews

      6. Select one of the following files and click Finish to import the file.

        • DisplayRecipeTopBrowsedPropertiesView.lzx

        • DisplayRecipeTopBrowsedPropertiesView.def

    2. Add a reference to the new properties view file in the MarketingExtensionsLibrary.lzx file. The file is stored at the following path: LOBTools/WebContent/WEB-INF/src/lzx/commerce/marketing/. The line of code that references the new properties file should resemble the following snippet:

      <include href="../../mycompany/marketing/propertiesViews/DisplayRecipeTopBrowsedPropertiesView.lzx"/> 
      

  5. Create the summary for the campaign element.

    If to display summary text below the campaign element in the Activity Builder work area, create a new extension class for this summary. In the Activity Builder, business users can read the summary text to quickly understand how an element is being used in a Web or Dialog activity.

    1. Create the summary for the campaign element.

      1. Complete one of the following steps:

        • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing > propertiesViews.

        • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing.

      2. Complete one of the following steps:

        • Right-click the propertiesViews folder and select Import. Expand General and select File system.

        • Right-click the marketing folder and select New > Folder. In the folder name field, enter propertiesView and click Finish. Right-click the propertiesViews folder and select Import.

      3. Click Next, then click Browse and navigate to RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\propertiesViews.

      4. Select the DisplayRecipeTopBrowsedSummary.lzx file and click Finish to import the file.

    2. Register this new summary class in the MarketingExtensionsLibrary.lzx file. The file is stored at the following path: LOBTools/WebContent/WEB-INF/src/lzx/commerce/marketing/. The line of code that references the new summary class should resemble the following snippet:

      <include href="../../mycompany/marketing/propertiesViews/DisplayRecipeTopBrowsedSummary.lzx"/>
      

  6. Create a file and add a definition to display the recipe collection in a grid view. The grid view is used in the properties view.

    1. Complete one of the following steps:

      • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > mycompany > marketing

      • In the Enterprise Explorer view, expand LOBTools > WebContent > config > mycompany > marketing

    2. Right-click the marketing folder and select New > Folder.

    3. In the folder name field, enter listViewDefinitions and click Finish.

    4. Right-click the listViewDefinitions folder and select Import. Expand General and select File system.

    5. Click Next, then click Browse and navigate to one of the following folders:

      • RecipeTopBrowsedSource\LOBTools\WebContent\WEB-INF\src\lzx\mycompany\marketing\listViewDefinitions

      • RecipeTopBrowsedSource\LOBTools\config\mycompany\marketing\listViewDefinitions

    6. Select one of the following files and click Finish to import the file.

      • RecipeCollectionGrid.lzx

      • RecipeCollectionGrid.def

    7. Register this new summary class in the MarketingExtensionsLibrary.lzx file. The file is stored at the following path: LOBTools/WebContent/WEB-INF/src/lzx/commerce/marketing/. The line of code that references the new summary class should resemble the following snippet:

      <include href="../../mycompany/marketing/listViewDefinitions/RecipeCollectionGrid.lzx"/>
      

  7. Add the campaign element to the element palette in the Activity Builder.

    You must include the new campaign element in the element palette so that business users can drag the new element from the palette into the work area.

    1. Complete one of the following steps:

      • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > propertiesViews

      • In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > propertiesViews

    2. Open one of the following properties view files:

      • WebActivityBuilder.lzx

      • WebActivityBuilder.def

      File Procedure
      WebActivityBuilder.lzx In this properties view file:

      1. Locate the section in the code sample named palette:

        <dataset name="palette">
            <Group resourceBundle="mktMarketingResources" name="actions" helpText="help_palette_actions" helpLink="concepts/csbactions.htm">
                        
            </Group>
        </dataset>
        

      2. Insert the following code as a child of the appropriate <Group/> tag:

        <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
        

      3. Your completed code should resemble the following code snippet:

        <dataset name="palette">
            <Group resourceBundle="mktMarketingResources" name="actions" helpText="help_palette_actions" helpLink="concepts/csbactions.htm">
                <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
            </Group>
        </dataset>
        

      4. Save the changes and close the properties view file.
      WebActivityBuilder.def In this properties view file:

      1. Locate the section in the code sample named palette:

        <Xml name="palette">
            ...
            <Group helpLink="concepts/csbactions.htm" helpText="help_palette_actions"
                name="actions" resourceBundle="mktMarketingResources">
                ...
            </Group>
            ...
        </Xml>
        

      2. Insert the following code as a child of the appropriate <Group/> tag:

        <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
        

      3. Your completed code should resemble the following code snippet:

        <Xml name="palette">
            ...
            <Group helpLink="concepts/csbactions.htm" helpText="help_palette_actions"
                name="actions" resourceBundle="mktMarketingResources">
                ...
                <!-- recipe top viewed ranking -->
                <Element objectType=�?recipe_Ranking_MostBrowsed�?/>
            </Group>
            ...
        </Xml>
        

      4. Save the changes and close the properties view file.

    3. Open one of the following properties view files:

      • WebActivityTemplateBuilder.lzx

      • WebActivityTemplateBuilder.def

      File Procedure
      WebActivityTemplateBuilder.lzx In this properties view file:

      1. Locate the section in the code sample named palette:

        <dataset name="palette">
            <Group resourceBundle="mktMarketingResources" name="actions" helpText="help_palette_actions" helpLink="concepts/csbactions.htm">
                        
            </Group>
        </dataset>
        

      2. Insert the following code as a child of the appropriate <Group/> tag:

        <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
        

      3. Your completed code should resemble the following code snippet:

        <dataset name="palette">
            <Group resourceBundle="mktMarketingResources" name="actions" helpText="help_palette_actions" helpLink="concepts/csbactions.htm">
                <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
            </Group>
        </dataset>
        

      4. Save the changes and close the properties view file.
      WebActivityTemplateBuilder.def In this properties view file:

      1. Locate the section in the code sample named palette:

        <Xml name="palette">
            ...
            <Group helpLink="concepts/csbactions.htm" helpText="help_palette_actions"
                name="actions" resourceBundle="mktMarketingResources">
                ...
            </Group>
            ...
        </Xml>
        

      2. Insert the following code as a child of the appropriate <Group/> tag:

        <!-- recipe top viewed ranking -->
        <Element objectType="recipe_Ranking_MostBrowsed"/>
        

      3. Your completed code should resemble the following code snippet:

        <Xml name="palette">
            ...
            <Group helpLink="concepts/csbactions.htm" helpText="help_palette_actions"
                name="actions" resourceBundle="mktMarketingResources">
                ...
                <!-- recipe top viewed ranking -->
                <Element objectType=�?recipe_Ranking_MostBrowsed�?/>
            </Group>
            ...
        </Xml>
        

      4. Save the changes and close the properties view file.

  8. Create and register a serialization JSP file for the campaign element.

    Create and register a serialization JSP file to take the authoring elements from the DMELEMENT and DMELEMENTNVP tables for the new campaign element and display them in the Management Center user interface. When a business user opens an activity, the parent serialization JSP file, GetActivityChildren.jsp, calls the serialization JSP file for each campaign element to load the data for the activity.

    If the object definition for the new campaign element includes wcfChildObjectDefinitions or wcfReferenceObjectDefinitions, create a new serialization JSP file for the new campaign element. Otherwise, you can use the existing generic serialization JSP file, SerializeActivitygenericElement.jsp, as is. In both cases, register the serialization JSP file in the Struts configuration file for customization, struts-extension.xml. This file is initially empty and takes precedence over all Struts configuration files.

    1. Create the serialization JSP file.

      1. In the Enterprise Explorer view, navigate to LOBTools > WebContent > jsp > mycompany.

      2. Right-click mycompany and select New > Folder.

      3. In the folder name field, enter marketing and click Finish.

      4. Right-click marketing and select Import. Expand General and select File system.

      5. Click Next, the click Browse and navigate to RecipeTopBrowsedSource\LOBTools\WebContent\jsp\mycompany\marketing. Select the SerializeActivityRecipeRankingMostBrowsed.Jsp, GetRecipeCollectionById.Jsp, and SerializeRecipeCollection.Jspf files. Click Finish to import the files.

    2. Register the serialization JSP file.

      1. Open the Struts configuration file, struts-extension.xml. The file is stored... LOBTools/WebContent/WEB-INF.

      2. Add a new action mapping to register the serialization JSP file:

        <action path="/SerializeActivityElement-recipe_Ranking_MostBrowsed" 
        include="/jsp/mycompany/marketing/SerializeActivityRecipeRankingMostBrowsed.jsp" />
        

  9. Modify one of the following files in the Marketing tools, so that the tools can retrieve the recipe collections data:

    • MarketingTopObjectDefinition.lzx

    • MarketingTopObjectDefinition.def

    1. Complete one of the following steps:

      • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing > objectDefinitions

      • In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing > objectDefinitions

    2. Open one of the following properties view files:

      File Procedure
      MarketingTopObjectDefinition.lzx In this properties view file:

      1. Locate the following code:

        <class name="mktMarketingTopObjectDefinition"                     extends="wcfTopObjectDefinition">    
            .......................
        </class>
        

      2. Insert the following code as a child of the appropriate <Class/> tag:

        <wcfGetChildrenService url="/cmc/GetRecipeCollections"             objectTypes="RecipeCollection">    
                <wcfServiceParam name="storeId"/>        
        </wcfGetChildrenService>
        

      3. Save the changes and close the properties view file.
      MarketingTopObjectDefinition.def In this properties view file:

      1. Locate the following code:

        <TopObjectDefinition definitionName="mktMarketingTopObjectDefinition">
            ...
        </TopObjectDefinition>
        

      2. Insert the following code as a child of the appropriate <TopObjectDefinition/> tag:

        <GetChildrenService url="/cmc/GetRecipeCollections" objectTypes="RecipeCollection">    
            <ServiceParam name="storeId"/>
        </GetChildrenService>
        

      3. Save the changes and close the properties view file.

  10. Modify the file that contains the main definition for the Marketing tool. By doing so, you can use the object defined in Tutorial: Adding a Recipes tool to the Management Center

    1. Complete one of the following steps:

      • In the Enterprise Explorer view, expand LOBTools > WebContent > WEB-INF > src > lzx > commerce > marketing

      • In the Enterprise Explorer view, expand LOBTools > WebContent > config > commerce > marketing

    2. Open one of the following files:

      File Procedure
      MarketingManagementToolDefinition.lzx In this file:

      1. Locate the following code:

        browseUtilityFilterTypes="All,MasterCategories,SalesCategories,ManagedContentsFilter,AttachmentResourceFilter"
        

      2. Replace the code with the following code snippet:

        browseUtilityFilterTypes="All,MasterCategories,SalesCategories,ManagedContentsFilter,AttachmentResourceFilter,Recipes"
        

      3. Locate the following code:

        <!-- Filters -->
        

      4. Replace the code with the following code snippet:

        <!-- Filters -->
        <wcfObjectTypeFilter filterType="Recipes"         displayName="Recipes" isDefault="true"         objectTypes="RecipeCollectionNode,UnassignedRecipeNode,RecipeCollection" />
        

      5. Locate the following code:

        <!-- Marketing Organizational Objects -->
        

      6. Replace the code with the following code snippet:

        <!-- Marketing Organizational Objects -->
        <recUnassignedRecipeOrganizationalObjectDefinition/>
        <recRecipeCollectionOrganizationalObjectDefinition/>
        

      7. Locate the following code:

        <!-- Marketing Primary Objects -->
        

      8. Replace the code with the following code snippet:

        <!-- Marketing Primary Objects -->
        <recRecipeCollectionPrimaryObjectDefinition/>
        <recRecipePrimaryObjectDefinition/>
        

      9. Locate the following code:

        <!-- Marketing Search Definitions -->
        

      10. Replace the code with the following code snippet:

        <!-- Marketing Search Definitions -->
        <recFindRecipesSearchDefinition/>
        <recFindRecipeCollectionsSearchDefinition/>
        

      11. Save the changes and close the properties view file.
      MarketingManagementToolDefinition.def In this file:

      1. Locate the following code:

        browseUtilityFilterTypes="All,MasterCategories,SalesCategories,ManagedContentsFilter,AttachmentResourceFilter"
        

      2. Replace the code with the following code snippet:

        browseUtilityFilterTypes="All,MasterCategories,SalesCategories,ManagedContentsFilter,AttachmentResourceFilter,Recipes"
        

      3. Locate the following code:

        <!-- Filters -->
        

      4. Replace the code with the following code snippet:

        <!-- Filters -->
        <ObjectTypeFilter filterType="Recipes"         displayName="Recipes" isDefault="true"         objectTypes="RecipeCollectionNode,UnassignedRecipeNode,RecipeCollection" />
        

      5. Locate the following code:

        <!-- Marketing Organizational Objects -->
        

      6. Replace the code with the following code snippet:

        <!-- Marketing Organizational Objects -->
        <OrganizationalObjectDefinition baseDefinitionName="UnassignedRecipeNode"/>
        <OrganizationalObjectDefinition baseDefinitionName="RecipeCollectionNode"/>
        

      7. Locate the following code:

        <!-- Marketing Primary Objects -->
        

      8. Replace the code with the following code snippet:

        <!-- Marketing Primary Objects -->
        <PrimaryObjectDefinition baseDefinitionName="RecipeCollection"/>
        <PrimaryObjectDefinition baseDefinitionName="Recipe"/>
        

      9. Locate the following code:

        <!-- Marketing Search Definitions -->
        

      10. Replace the code with the following code snippet:

        <!-- Marketing Search Definitions -->
        <SearchDefinition baseDefinitionName="FindRecipes"/>
        <SearchDefinition baseDefinitionName="FindRecipeCollections"/>
        

      11. Save the changes and close the properties view file.

    3. Right-click the LOBTools project and select Build Openlaszlo Project.


Related concepts

Rank list framework for marketing actions


Related tasks

Define icons to represent the campaign element

Create the object definition for the campaign element

Create the properties view for the campaign element

Create the summary for the campaign element

Add the campaign element to the element palette in the Activity Builder

Create and registering a serialization JSP file for the campaign element


Related information

Tutorial: Adding a Recipes tool to the Management Center

< Previous | Next >


+

Search Tips   |   Advanced Search