製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

ADP JDBC Driver

ADP 連携のパワフルなJava アプリケーションを素早く作成して配布。

データ連携でお困りですか?

お問い合わせ

Crystal Reports でADP データに連携して帳票を作成


レポートウィザードを使って、最新のADP 連携データを使った帳票を作成。


adp ロゴ画像
jdbc ロゴ画像

JDBC

SAP Crystal Reports ロゴ画像


Crystal Reports には、JDBC 標準向けのサポートが組み込まれています。この記事では、ADP の機能を持つ帳票を作成するレポート作成ウィザードの使い方を説明します。

ADP JDBC Driver のインストール

CData JDBC Driver for ADP を、ドライバーのJAR をCrystal Reports のクラスパスに含めてインストール:DataDriverCommonElement の下のClassPath element のパスに、 .jar を含むファイルのフルパスを追加します。

CRConfig.xml は通常C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java に配置されます。— パスはインストールによって若干異なる場合があります。ドライバーのJAR はインストールディレクトリの[lib]サブフォルダ内にあります。

ClassPath にJAR を追加したら、Crystal Reports を再起動します。

ADP データに接続

下記の手順に従って、レポート作成ウィザードを使ってADP 接続を作成します。

  1. 新しい空の帳票で、[Create New Connection]>[JDBC (JNDI)]をクリックします。
  2. ウィザードでJDBC 接続URL を選択します。

    jdbc:adp:OAuthClientId=YourClientId;OAuthClientSecret=YourClientSecret;SSLClientCert='c:\cert.pfx';SSLClientCertPassword='admin@123'
  3. ドライバーのクラス名を設定:

    cdata.jdbc.adp.ADPDriver

    Connect to ADP by specifying the following properties:

    • SSLClientCert: Set this to the certificate provided during registration.
    • SSLClientCertPassword: Set this to the password of the certificate.
    • UseUAT: The connector makes requests to the production environment by default. If using a developer account, set UseUAT = true.
    • RowScanDepth: The maximum number of rows to scan for the custom fields columns available in the table. The default value will be set to 100. Setting a high value may decrease performance.

    The connector uses OAuth to authenticate with ADP. OAuth requires the authenticating user to interact with ADP using the browser. For more information, refer to the OAuth section in the Help documentation.

帳票をデザイン

JDBC 接続をADP に追加したら、レポート作成ウィザードを使ってADP を帳票に追加できます。

  1. 帳票に必要なテーブルやフィールドを選択して、データソースを設定します。この例では、Workers テーブルのAssociateOID およびWorkerID カラムを使います。

    ADP data accessible as tables and columns in the Report Wizard. (Salesforce is shown.)
  2. チャートの種類を設定 ウィザードを完了すると、Crystal Reports はADP data に実行されるSQL クエリをビルドします。ドライバーは、ライブADP data に対してクエリを実行します。

    Chart type, axes, and summary type in the Report Wizard. (Salesforce is shown.)
  3. 必要に応じて、ほかのフィルタや帳票テンプレートを設定します。
  4. データのインポートが終わったら、データをサマライズもしくはソートするチャートやレポートオブジェクトを作成できます。[Insert]>[Chart]をクリックして、チャートエキスパートを開きます。Total WorkerID by AssociateOID を表すグラフを作成するには、AssociateOID を[On Change Of]メニューセレクションの下のボックスに追加してからWorkerID を[Show Values]の下のボックスに追加します。

    The x and y axes of the chart.

完成した帳票をプレビューして、チャートにデータが入っていることを確認します。Null 値を取り除きたい場合は、SelectionFormula を使います。

A chart with null values filtered out. (Salesforce is shown.)