This topic demonstrates how to add a database select operation
that makes a qualified selection from the data source. In the spreadsheet
value table, the $db:select statement has the default value fn:true(), which
returns all entries in the table. You must therefore replace this value with
one that qualifies the selection, for example:
$db:select.LAB13STA.ARGOSTR.XREF.STATE=$source/AirlineRequest/Purchase/Customer/State
This example selects only the records from the database where the
STATE column is the same as the State input field. The For entry is shown
with the value $db:select, which causes iteration over the values that are
selected from the database. If you use an unqualified select, the following
source to target mappings would exist:
Source |
Target |
Street |
STREET |
City |
CITY |
Zip |
ZIP_CODE |
FlightNumber |
FLIGHT_NO |
Date |
TRAN_DATE |
Price |
COST |
CreditCard |
CC_NO |
Status |
STATUS1 |
Details |
DETAILS |