本記事では CData サポート担当からこんなことを聞かれたらどこを確認すべきか?という観点で、よく頂くお問合せ内容をご紹介します。
記事はこちら →Crystal Reports には、JDBC 標準向けのサポートが組み込まれています。この記事では、Workday の機能を持つ帳票を作成するレポート作成ウィザードの使い方を説明します。
CData JDBC Driver for Workday を、ドライバーの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 を再起動します。
下記の手順に従って、レポート作成ウィザードを使ってWorkday 接続を作成します。
ウィザードでJDBC 接続URL を選択します。
jdbc:workday:User=myuser;Password=mypassword;Tenant=mycompany_gm1;Host=https://wd3-impl-services1.workday.com
ドライバーのクラス名を設定:
cdata.jdbc.workday.WorkdayDriver
To connect, there are three pieces of information required: Authentication, API URL, and WSDL URL.
To authenticate, specify your User and Password. Note that you must append your Tenant to your User separated by an '@' character. For instance, if you normally log in with 'geraldg' and your Tenant is 'mycompany_mc1', then your User should be specified as 'geraldg@mycompany_mc1'.
The API URL may be specified either directly via APIURL, or it may be constructed from the Tenant, Service, and Host. The APIURL is constructed in the following format: <Host>/ccx/service/<Tenant>/<Service>.
The WSDLURL may be specified in its entirety, or may be constructed from the Service and WSDLVersion connection properties. The WSDLURL is constructed in the following format: https://community.workday.com/sites/default/files/file-hosting/productionapi/<Service>/<WSDLVersion>/<Service>.wsdl
JDBC 接続をWorkday に追加したら、レポート作成ウィザードを使ってWorkday を帳票に追加できます。
帳票に必要なテーブルやフィールドを選択して、データソースを設定します。この例では、Workers テーブルのWorker_Reference_WID およびLegal_Name_Last_Name カラムを使います。
チャートの種類を設定 ウィザードを完了すると、Crystal Reports はWorkday data に実行されるSQL クエリをビルドします。ドライバーは、ライブWorkday data に対してクエリを実行します。
データのインポートが終わったら、データをサマライズもしくはソートするチャートやレポートオブジェクトを作成できます。[Insert]>[Chart]をクリックして、チャートエキスパートを開きます。Total Legal_Name_Last_Name by Worker_Reference_WID を表すグラフを作成するには、Worker_Reference_WID を[On Change Of]メニューセレクションの下のボックスに追加してからLegal_Name_Last_Name を[Show Values]の下のボックスに追加します。
完成した帳票をプレビューして、チャートにデータが入っていることを確認します。Null 値を取り除きたい場合は、SelectionFormula を使います。