Pentaho BI ツールでBusiness b-ridge のレポートを作成。
CData JDBC Driver for Business b-ridge はダッシュボードや帳票ツールからリアルタイムBusiness b-ridge データへの連携を可能にします。この記事では、Business b-ridge をJDBC データソースとして接続する方法と、Pentaho でBusiness b-ridge を元に帳票を作成する方法を説明します。
接続と帳票の作成
- インストールディレクトリの[lib]サブフォルダ内のJAR ファイルをコピーし、Pentaho のディレクトリ内の\Report-Designer\lib\jdbc\ フォルダに配置します。
- \Report-Designer\ フォルダのreport-designer.bat ファイルを起動し、Report-Designer UI を開きます。
以下の手順でドライバーを新しいデータソースに設定します。[Data]>[Add Data Source]>[Advanced]>[JDBC (Custom)]とクリックし、新しいBusiness b-ridge 接続を作成します。ダイアログが表示されたら、次のように接続プロパティを設定します。
Custom Connection URL property:JDBC URL を入力。初めに以下を入力し jdbc:businessbridge: 次にセミコロン区切りで接続プロパティを入力します。
When connecting to Business b-ridge, CompanyKey, ProjectKey, and SubscriptionKey are required.
To obtain the SubscriptionKey, follow the steps below:
- Log in to Business b-ridge API Protal and go to "Profile" in the "Your name" menu.
- In your subscription section click "Main Key" to retrieve their respective values.
Authenticate to Business b-ridge Account
Set the following connection properties to connect:
- CompanyKey: Set the Business b-ridge Company Key of the connection destination.
- ProjectKey: Set the Business b-ridge Project Key of the connection destination.
- SubscriptionKey: Set the value "Subscription Key".
以下は一般的なJDBC URL です:
jdbc:businessbridge:
- Custom Driver Class Name:cdata.jdbc.businessbridge.BusinessBridgeDriver と入力。
- User Name:認証するユーザーネーム。
- Password:認証するパスワード。
レポートに Business b-ridge データを追加
これで、Business b-ridge の帳票を作成する準備が整いました。
-
帳票にBusiness b-ridge データソースを追加します:[Data]>[Add Data Source]>[JDBC]をクリックし、データソースを選択します。
クエリを設定します。この記事では次を使います:
SELECT ItemId, StructureId FROM CDATA WHERE ItemTypeId = '1'
- 帳票にチャートをドラッグし、ダブルクリックしてチャートを編集します。帳票を実行して、チャートを表示します。このクエリ結果を使って、CDATA テーブルのシンプルなチャートを作成することができます。
- 帳票を実行して、チャートを見てみましょう。
