Example: creating lists of marketing objects
This example describes how to display a list of marketing object references.
Scenario
You have a project with four subordinate marketing object types:
*
*
*
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® Marketing Operations.
Assumptions
The following items exist in Marketing Operations:
*
*
Tasks
To implement this scenario, you do the following tasks.
1.
Using the Forms Editor, set up the following forms:
*
After users create a participating marketing object, they enter the value of the project code for the originating project in this field.
*
For the custom tab, you add a Single Select Object Reference attribute to a form. To configure this attribute, you must first create a custom view.
See "Creating the custom tab and attribute" below for details about creating these forms.
2.
3.
*
*
4.
*
*
*
When users open the Participating Marketing Objects tab for EventStuff001, they 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 Marketing Operations. We also need a 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.
In the Forms Editor, set up two forms, both using the same database table.
2.
3.
4.
5.
6.
7.
8.
Creating the custom view
Typically, you 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 you create the view, ensure that you 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: