Converting a Static Lookup to a Regular Lookup

Converting a Static Lookup to a Regular Lookup
© 1993-2015 Informatica LLC. No part of this document may be reproduced or transmitted in any form, by any
means (electronic, photocopying, recording or otherwise) without prior consent of Informatica LLC. All other
company and product names may be trade names or trademarks of their respective owners and/or copyrighted
materials of such owners.
Abstract
The subject area-based Data view in Informatica Data Director (IDD) allows the use of static lookups. Static lookups
are hard-coded lists of values stored inside the IDD configuration file. You cannot use static lookups in the Entity 360
framework in IDD. To continue using a list of values from a static lookup in the Entity 360 framework, you must convert
static lookups into regular lookups. This article explains how to convert static lookups into regular lookups for
Informatica Data Director.
Supported Versions
•
MDM Multidomain Edition 10.1.0
Table of Contents
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 1: Export the IDD Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 2: Create a Lookup Base Object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Step 3: Regenerate the Business Entity Schema in IDD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Overview
To convert a static lookup to a regular lookup for Informatica Data Director (IDD), perform the following steps:
1.
Export the IDD application that contains the static lookup.
2.
Create a lookup base object in the Hub Console.
3.
Regenerate the business entity schema in IDD.
Step 1: Export the IDD Application
With a text editor, you can view a static lookup in the Informatica Data Director configuration file (BDDConfig.xml). To
access the IDD configuration file, use the Informatica Data Director Configuration Manager to export the IDD
application. You can log in to the Configuration Manager with the same administrator login and password that you use
to log into the Hub Console.
1.
Enter the following URL in the browser: http://<host>:<port>/bdd/config
The Login page appears.
2.
Click Log In.
The main screen of the Configuration Manager appears.
3.
Select the IDD application that you want to export.
4.
Select Export > Export Application.
5.
When prompted, save the application as a .zip file to your desktop.
6.
Extract the files from the .zip file. Use the default folder name when you extract the files.
The folder contains multiple files, including BDDConfig.xml.
7.
2
With a text editor, edit the IDD configuration file to find the static lookup you want to convert.
For example, you have the following static lookup in the IDD configuration file. In this example, the three
makes of car are static lookups associated with the base object C_AUTOMOBILE.
<column columnUid="C_AUTOMOBILE|MAKE" editStyle="FIELD"
horizontalStyle="LARGE">
<columnStaticLookups>
<columnStaticLookup code="Lada" name="Make Lada" />
<columnStaticLookup code="Subaru" name="Make Subaru" />
<columnStaticLookup code="Smart" name="Make Smart" />
</columnStaticLookups>
</column>
Step 2: Create a Lookup Base Object
After you export the IDD application, create a lookup base object that contains the values from the static lookup. Use
the Schema tool in the Hub Console to create and configure base objects. In this example, you want to create a LU
Make lookup base object.
1.
From the Schema tool, right-click Base Objects and select Add Item.
The Add Table dialog box appears.
2.
In the Display Name field, enter a name for the base object.
In this example, enter LU Make.
3.
To designate this a lookup base object, in the Advanced tab, enable the Lookup indicator check box.
4.
Expand the base object in the Schema tool, and select Columns for the column view.
5.
Click the Add Column icon to add an entry to the table. Enter each value from the static lookup as a column.
The following image shows the configured columns for the base object in this example:
6.
Use the Data Manager tool in the Data Steward workbench to add values to the base object columns.
7.
Use the Schema tool to add a relationship between the new base object and the parent base object.
In this example, you create a foreign key relationship between the Make column in the C_AUTOMOBILE
base object and the Make code column in the LU Make lookup base object:
8.
Click the Save columns icon to save the lookup base object to the Hub Store.
3
Step 3: Regenerate the Business Entity Schema in IDD
After you create the lookup base object, remove the static lookup from the IDD configuration file. Then import the
edited IDD configuration file and regenerate the business entity schema in IDD.
1.
With a text editor, delete the static lookup from the IDD configuration file (BDDConfig.xml).
In this example, delete the lines between the tags <columnStaticLookups> and </columnStaticLookups>
inclusive.
<column columnUid="C_AUTOMOBILE|MAKE" editStyle="FIELD"
horizontalStyle="LARGE">
<columnStaticLookups>
<columnStaticLookup code="Lada" name="Make Lada" />
<columnStaticLookup code="Subaru" name="Make Subaru" />
<columnStaticLookup code="Smart" name="Make Smart" />
</columnStaticLookups>
</column>
2.
Save the changes to the IDD configuration file (BDDConfig.xml).
3.
Log in to the Informatica Data Director Configuration Manager.
4.
Select Application State > Import to existing IDD application.
The Import to existing IDD application dialog box appears.
5.
Select the type of configuration file to import.
In this example, select BDD Configuration.
6.
Click Browse.
7.
Navigate to the IDD configuration file that you edited.
In this example, you select BDDConfig.xml.
8.
Click Open.
The file uploads to the application.
9.
Click Import.
A Validation Results screen appears.
10.
Click OK.
The Validation Results screen closes.
11.
To regenerate the schema in IDD, click Generate Business Entity Schema.
The MDM Hub integrates the lookup base object you created in the new schema. The MDM Hub coverts the
lookup base object to a reference entity and links it with the appropriate business entity in the schema.
The lookup base object that you created is now associated with a business entity. You have converted the static
lookup to a regular lookup.
Author
Dan Kellett
The author would like to acknowledge Sergey Ivanov for his contribution to this article.
4