A LincDoc lookup is made of two parts, the SQL query to search for data in a database and a mapping of the retrieved database fields/columns with the LincDoc fields in your form. Use the following steps to configure a JDBC lookup.
Configuring a lookup action
Add the lookup action to the appropriate field button. See Configuring Actions for more information.
Click on the lookup action's arrow submenu and select edit.
Configure the lookup attributes.
Select an option for a single result. A selection of Load will map the queried results to the form fields automatically. Prompt will display a message option to the user before loading the results.
The option for multiple results controls the behavior of the lookup when the search criteria has generated more than one match. Prompt to Select One will display them in list format for the user to narrow further. Load All will return all of the results.
If desired, enter a message to return to the user when no match is found.
You may configure a condition that must be met before the lookup is executed. Refer to Configuring conditions for more information.
Creating a lookup
On the lookup action screen, select the lookup drop down list.
On the drop down list menu window, select the new box.
The New lookup window will be displayed.
Enter the lookup ID: an arbitrary identifier string for this lookup.
Select the lookup Type: of JDBC. See the next page for information on JDBC Advanced lookups.
Choose the add action at the top of the New lookup window to add the new lookup.
The lookup definition window will then display.
The Description will be used to further identify the lookup in lookup selection lists.
Select the Data source from a list of the server's configured data sources. See Datasource configuration for more information.
Select the Table/View that will contains the data.
The Sort column sorts the match results in the selected Sort direction of either ascending or descending.
The condition defines the table's selection criteria. In this example, the table's row information will be returned if the entered contact_pn field exactly equals the cName column in the Contacts table.
Click the refresh button to update the lookup fields column.
Drag and drop the lookup fields on the left to match the LincDoc field on the right.
Save the lookup definition by clicking on the save action.
Editing a lookup
On the lookup action screen, select the lookup drop down list.
Each configured lookup will be listed.
Select the edit icon to edit the lookup's attributes.
The lookup definition screen will be displayed (see above).
Deleting a lookup
On the lookup action screen, select the lookup drop down list.
Each configured lookup will be listed.
Select the delete icon to remove the lookup's definition.