データベースを検索するサンプルスクリプト

このスクリプト例では、ウェブ検証ステーションでデータベースのデータを検索する方法をご紹介します。

データベースを検索するようユーザースクリプトを設定する前に、次の手順を実行します。

  1. プロジェクト設定ステーションを開いて、文書定義エディタに進みます(プロジェクト → 文書定義...)。
  2. データセットタブの文書定義プロパティ(文書定義 → 文書定義プロパティ)に進み、追加...をクリックします。
  3. データセットを作成して、いくつか記録を入力します。閉じるをクリックします。

ユーザースクリプトがウェブ検証ステーションのスクリプトエディタに追加されます。

データベースのデータを検索するサンプルスクリプト

サンプルスクリプトはこちらにもあります: https://<ApplicationServer>/FlexiCapture12/Verification/Scripts/CustomScripts/customActionLookup.js ここで <ApplicationServer> は、アプリケーションサーバーをインストールしたパソコン名です。

サンプルスクリプトの次の行の値を置き換えます:

  • var dbCacheName = 'DataSet1' where DataSet1 は以前に作成したデータセット名です
  • var fieldNameInCache = 'Field2' where Field2 はコピーされる値を含むデータセットのフィールド名です

25.05.2023 7:55:11

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.