Pentaho BI ツールでQuickBase のレポートを作成。
CData JDBC Driver for QuickBase はダッシュボードや帳票ツールからリアルタイムQuickBase データへの連携を可能にします。この記事では、QuickBase をJDBC データソースとして接続する方法と、Pentaho でQuickBase を元に帳票を作成する方法を説明します。
接続と帳票の作成
- インストールディレクトリの[lib]サブフォルダ内のJAR ファイルをコピーし、Pentaho のディレクトリ内の\Report-Designer\lib\jdbc\ フォルダに配置します。
- \Report-Designer\ フォルダのreport-designer.bat ファイルを起動し、Report-Designer UI を開きます。
以下の手順でドライバーを新しいデータソースに設定します。[Data]>[Add Data Source]>[Advanced]>[JDBC (Custom)]とクリックし、新しいQuickBase 接続を作成します。ダイアログが表示されたら、次のように接続プロパティを設定します。
Custom Connection URL property:JDBC URL を入力。初めに以下を入力し jdbc:quickbase: 次にセミコロン区切りで接続プロパティを入力します。
User Authentication Method
To authenticate with user credentials, specify the following connection properties:
- Set the User and Password.
- If your application requires an ApplicationToken;, you must provide it otherwise an error will be thrown. You can find the ApplicationToken under SpecificApp > Settings > App management > App properties > Advanced settings > Security options > Manage Application Token.
User Token Authentication
To authenticate with a user token, specify the following connection properties:
- Set UserToken and you are ready to connect. You can find the UserToken under Quick Base > My Preferences > My User Information > Manage User Tokens.
以下は一般的なJDBC URL です:
jdbc:quickbase:User=user@domain.com;Password=password;Domain=myinstance.quickbase.com;ApplicationToken=bwkxrb5da2wn57bzfh9xn24
- Custom Driver Class Name:cdata.jdbc.quickbase.QuickBaseDriver と入力。
- User Name:認証するユーザーネーム。
- Password:認証するパスワード。
レポートに QuickBase データを追加
これで、QuickBase の帳票を作成する準備が整いました。
-
帳票にQuickBase データソースを追加します:[Data]>[Add Data Source]>[JDBC]をクリックし、データソースを選択します。
クエリを設定します。この記事では次を使います:
SELECT Id, Column1 FROM SampleTable_1 WHERE Column2 = '100'
- 帳票にチャートをドラッグし、ダブルクリックしてチャートを編集します。帳票を実行して、チャートを表示します。このクエリ結果を使って、SampleTable_1 テーブルのシンプルなチャートを作成することができます。
- 帳票を実行して、チャートを見てみましょう。
