Create a data set
Before you configure the script, create a data set for it to search:1
Open the document definitions
Open the Project Setup Station and click Project → Document Definitions.
2
Add a data set
Click Document Definition → Document Definition Properties, open the Data Sets tab, and click Add.
3
Create records
Create a data set, add a few records, and click Close.
Sample script
https://<ApplicationServer>/FlexiCapture12/Verification/Scripts/CustomScripts/customActionLookup.js, where <ApplicationServer> is the name of the computer where the Application Server is installed.
Replace the values in these lines:
- In
var dbCacheName = 'DataSet1';, replaceDataSet1with the name of the data set you created. - In
var fieldNameInCache = 'Field2';, replaceField2with the name of the data set field that contains the value to copy.
