Creating lists of marketing objects
This example describes how to display a list of marketing object references.
Scenario
You have a project that has four subordinate marketing objects associated with it:
*
*
*
After you create the project, you periodically check to see which participating marketing objects have already been created.
This example describes the steps necessary to create this scenario in IBM® Operações de Marketing.
Assumptions
The following items exist in Operações de Marketing:
*
*
Tasks
To implement this scenario, perform the following tasks.
1.
*
*
*
Create a custom tab, Participating Marketing Objects.
*
"Creating the custom tab and attribute" describes the details for creating these forms.
2.
3.
Load the forms into Operações de Marketing, and add the forms to the appropriate templates:
4.
*
*
a brochure, Brochure001, and set its originating project to the project code for EventStuff001.
*
a mailer, Mailer001, and set its originating project to the project code for EventStuff001.
When you open the Participating Marketing Objects tab for EventStuff001, you see the details for the associated marketing objects:
Creating the custom tab and attribute
We need a tab that can hold the list. We add this tab to a project template in Operações de Marketing. We also need to define the custom form to hold the project code. The custom view depends on both these forms using the same database table, so we create them both in this section.
1.
2.
3.
4.
5.
6.
7.
8.
9.
Creating the custom view
Typically, you need to create a custom view before you can add an object reference to a list view. In this example, we reference a marketing object on a project, where the marketing object contains a text field that holds a project code.
This example uses three tables to create the view: uap_projects, uap_mktgobject, and the custom table dyn_mo_table. The view is named proj_mos_by_proj_code.
Prerequisite custom table
Before creating the view, ensure that you have created the custom table, dyn_mo_table, and that it contains the following columns:
*
*
Custom view details
The view contains the following columns:
*
*
The actual SQL code to create the view follows:
create view proj_mos_by_proj_code (
asscProj, MOName, ProjID, mo_id, comp_type_name) As
select PROJ.name as asscProj, MO.name as MOName,
PROJ.project_id as ProjID, MO.mktg_object_id as mo_id,
MO.comp_type_name as comp_type_name
from uap_projects PROJ, dyn_mo_table MOT, uap_mktgobject MO
where PROJ.proj_code = MOT.PID and MOT.po_id = MO.mktg_object_id
The following table shows the column names and some sample rows from this database view: