Skip to main content

How to use Table Lookup option in a business rule

Select the Table Lookup data source option to retrieve data from an existing data table, company user table, data provider table or system user table.When any of the components (Table Lookup, Math or

Updated over 2 weeks ago

Select the Table Lookup data source option to retrieve data from an existing data table, company user table, data provider table or system user table.

When any of the components (Table Lookup, Math or Function) is selected, a pop-up window is displayed giving the possibility of performing one out of four actions:

Table Lookup Selector
  • Create New - to create a new record

  • Copy Existing - to create a new record from copy an existing one

  • Select Existing - to reuse a previously created record

  • Run Existing - to execute the source, and given an entered context - Assignment ID, Cost Estimate ID or Cost Estimate Line Item ID - retrieve the result

To create the then section with a table lookup component for the bonus data table, the user can select the Table Lookup option to configure the logic. First select Table Lookup as the option.

Adding Table Lookup Component

For this example, we will be creating one from scratch. Select Create New option from the Table Lookup selector. The Table Lookup Level modal appears. Select either Standard Tables or System User Tables by clicking on it.

Table Lookup Selector - Table Lookup Level

After selecting the table level, enter a name for the table lookup function and select the Data Table from the drop-down list. If Standard Table was selected, the list shows data tables, company level user tables and data provider tables otherwise it shows System User Tables. Next select the Output Column from where the final output is to be found and retrieved.

Adding Table Lookup Component - Aggregate

By default, the Aggregate Function will show the Top Row. It is possible to select other aggregate functions by selecting a different value from the drop-down list. To retrieve the correct value, the Table Lookup function offers the ability to filter the data. Click

Add Filter.png

to create the filters. There is no limit to the number of filters that can be added. Click on

Add Sort By.png

and add as many sorting criteria as desired. For this example, the first operand in the filter condition is based on the Output Column of the selected Data Table. Creating filter conditions is done in the same way to creating conditions at the business rule level.

Adding Table Lookup Component - Filter

We will need to add a descending sort by effective date. Add Effective Date and tick the Desc checkbox.

Adding Table Lookup Component - Sort

Click

run button

or

save & run button

to run and test the function or

save button

to save the record. When Table Lookup functions are run, it is possible to specify how many rows of return which can be useful for troubleshooting. This is not possible when clicking

save & run button

on the Maths and Functions modals.

Table Lookup - Number of Rows

Things to Note

Did this answer your question?