Using lookups in Data Calculator

Data Calculator performs lookups on the attribute level. You must enter the lookup data at special lookup ports.


Adding Lookup Ports

To add a lookup port to Data Calculator, connect the OUT-port of the data providing component directly to the Data Calculator component (not a port). A lookup port is created and connected automatically. Alternatively, right-click the Data Calculator and select Add Input Port. Connect the OUT-port of the data providing component with the new port. The number of lookup ports is unlimited.


Preparing the lookup data

Each lookup port must have at least two attributes. The first attribute represents the key. All other attributes represent return values.

If you want to look up compound keys, you must concatenate the key values within a preceding component and use the same kind of concatenation on the key expression for the lookup.


Setting general lookup options

Use the Lookup Options property to configure the lookup. The Properties window displays a list of all lookup ports and its current option values.


Building lookup rules

To set up Lookup rules open the Tabular tab in the Data Calculator window. If Lookup ports are available, an additional Lookup column appears.

Provide the following information for each lookup rule: