Configure Lookup for Database > Name/Value

Configures a lookup with name/value pairs from database.

Prerequisites

Good to Know

  • Some information about third-party integrations is outside the scope of the AgilePoint NX Product Documentation, and it is the responsibility of the vendors who create and maintain these technologies to provide this information. This includes specific business uses cases and examples; explanations for third-party concepts; details about the data models and input and output data formats for third-party technologies; and various types of IDs, URL patterns, connection string formats, and other technical information that is specific to the third-party technologies. For more information, refer to Where Can I Find Information and Examples for Third-Party Integrations?

How to Start

  1. On the Application Explorer screen, do one of these:
  2. Do one of these:
    • Add a Single Select Lookup Auto Lookup icon control:
      1. On the eForm Builder screen, in the Toolbox, open the Advanced Controls Advanced Controls icon tab.
      2. On the Advanced Controls Advanced Controls icon tab, drag a Single Select Lookup Auto Lookup icon form control onto your eForm.
    • Change a Single Select Lookup Auto Lookup icon control:
      1. On your eForm, click the control, and click Edit Edit icon.
  3. On the Single Select Lookup screen, in the Configure tab, click Add Lookup Add Lookup icon.
  4. On the Select Data Source Type screen, select Database Database icon.
  5. Click Next.
  6. On the Lookup Details screen, select Name/Value.
  7. Click Next.

Quick Config tab

Configures a lookup using the existing data format from your data source.

Figure: Request tab

Configure Lookup screen

Fields

Field Name Definition

Schema

Function:
Specifies your database schema.
Accepted Values:
A schema name from the list.

When you select a database, the schemas associated with the database show in this field.

Default Value:
None

Table

Function:
Specifies the name of the your database table.
Accepted Values:
The name of your table.

When you select a schema, the tables associated with the database show in this field.

Default Value:
None

Name

Function:
Specifies the column name of the database table in a key-value pair.
To Open this Field:
  1. Select a table from the Table list.
Accepted Values:
The column name from the list.

When you select a database table, the columns and its values associated with the database table show in this field.

Default Value:
None

Value

Function:
Specifies the value for a database column in a key-value pair.
To Open this Field:
  1. Select a table from the Table list.
Accepted Values:
The value from the list.

When you select a database table, the columns and its values associated with the database table show in this field.

Default Value:
None

Column Name

Function:
Specifies the name of the database column.
To Open this Field:
  1. Click Add Filter Add Filter icon
Accepted Values:
A valid database column name.
Default Value:
None

Operator

Function:
Specifies the operator to use in filter.
To Open this Field:
  1. Click Add Filter Add Filter icon
Accepted Values:
  • In
  • !=
  • =
  • >
  • <
Default Value:
=
Limitations:

The In operator is available in these releases:

Filter Condition - Value

Function:
Specifies one or more values for the column or process data variables that contains the column value.
To Open this Field:
  1. Click Add Filter Add Filter icon
Accepted Values:
One or more column values.
Default Value:
None
Accepts Process Data Variables:
Yes
Limitations:

The option to use more than one value is available in these releases:

Delete Filter Delete Filter icon

Function:
Deletes the filter condition.

Filter Condition - Sort By

Function:
Specifies the name of the column to sequence the query results.
Accepted Values:
The name of your list column.
Default Value:
None

Filter Condition - Sort Order

Function:
Specifies the sort order for the result set.
Accepted Values:
  • Ascending
  • Descending
Default Value:
Ascending

Manual tab

Configures the WHERE clause for your query.

Screen



Fields

Field Name Definition

Query

Function:
Specifies the WHERE clause for your query with the conditions and logical operators
Accepted Values:
  • A valid SQL WHERE clause.
  • A valid stored procedure.
  • A valid SQL view.
Default Value:
None
Example:
SELECT PositionCode, FirstName, LastName, Email, City, StateCode, ZipCode FROM [appApplicants] WHERE PositionCode = ${PositionCode}

Perform SQL Query Escaping

Function:
Specifies whether the query condition value escapes the apostrophe (') character.
Accepted Values:
  • Selected - Apostrophe (') characters are escaped in your query condition value.
  • Deselected - The query condition value does not escape apostrophe (') characters.
Default Value:
Selected
Example:
SELECT PositionCode, FirstName, LastName, Email, City, StateCode, ZipCode FROM [appApplicants] WHERE PositionCode = ${PositionCode}
Limitations:

Validate Query

Function:
Does a test to make sure the query is correct, and displays the error message if an error occurs.

Result

Function:
Shows the result of the WHERE clause query.

Configure Lookup for Database > Name/Value > Error Messages tab

Configures the message to show if the lookup does not return any data.

Screen



Fields

Field Name Definition

No Items Available

Function:
Specifies the error message to show if the lookup does not return any data.
Accepted Values:
One line of text that can have spaces.
Default Value:
None

Failure Messages

Function:
Specifies the message to show if the data fails to load.
Accepted Values:
More than one line of text.
Default Value:
Failed to load data.