Using lookups in Data Calculator

Data Calculator performs lookups at the attribute level. You must enter 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 automatically created and connected. Alternatively, right-click the Data Calculator and select Add Input Port. Connect the OUT-port of the data providing component with the new port. You can add an unlimited number of lookup ports.


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.

To look up compound keys, 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 current option values.


Building lookup rules

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

For each lookup rule, provide: