Pentaho Report Designer にShipStation データに連携して分析

Pentaho BI ツールでShipStation のレポートを作成。

加藤龍彦
ウェブデベロッパー


shipstation ロゴ

CData

jdbc ロゴ画像
Pentaho Report Designer ロゴ

こんにちは!ウェブ担当の加藤です。マーケ関連のデータ分析や整備もやっています。



CData JDBC Driver for ShipStation はダッシュボードや帳票ツールからリアルタイムShipStation データへの連携を可能にします。この記事では、ShipStation をJDBC データソースとして接続する方法と、Pentaho でShipStation を元に帳票を作成する方法を説明します。

接続と帳票の作成

  1. インストールディレクトリの[lib]サブフォルダ内のJAR ファイルをコピーし、Pentaho のディレクトリ内の\Report-Designer\lib\jdbc\ フォルダに配置します。
  2. \Report-Designer\ フォルダのreport-designer.bat ファイルを起動し、Report-Designer UI を開きます。
  3. 以下の手順でドライバーを新しいデータソースに設定します。[Data]>[Add Data Source]>[Advanced]>[JDBC (Custom)]とクリックし、新しいShipStation 接続を作成します。ダイアログが表示されたら、次のように接続プロパティを設定します。

    • Custom Connection URL property:JDBC URL を入力。初めに以下を入力し jdbc:shipstation: 次にセミコロン区切りで接続プロパティを入力します。

      Use the BASIC Authentication standard to connect.

      1. Login to your ShipStation account
      2. Click on the settings icon in the upper right corner. A column menu will show up on the left
      3. Click Account -> API Settings
      4. On the API Settings page, note the API Key and API Secret.

      Authenticating to ShipStation

      • APIKey: Set this to the API key from the API settings page.
      • APISecret: Set this to the Secret key from the API settings page.

      以下は一般的なJDBC URL です:

      jdbc:shipstation:APIKey='YourAPIKey';APISecret='YourAPISecret'
    • Custom Driver Class Name:cdata.jdbc.shipstation.ShipStationDriver と入力。
    • User Name:認証するユーザーネーム。
    • Password:認証するパスワード。
    Required connection properties defined in the JDBC URL. (Salesforce is shown.)

レポートに ShipStation データを追加

これで、ShipStation の帳票を作成する準備が整いました。

  1. 帳票にShipStation データソースを追加します:[Data]>[Add Data Source]>[JDBC]をクリックし、データソースを選択します。

  2. クエリを設定します。この記事では次を使います:

    SELECT Id, Color FROM Tags WHERE CustomerId = '1368175' The query to retrieve data, specified in the JDBC data source configuration wizard. (Salesforce is shown.)
  3. 帳票にチャートをドラッグし、ダブルクリックしてチャートを編集します。帳票を実行して、チャートを表示します。このクエリ結果を使って、Tags テーブルのシンプルなチャートを作成することができます。
  4. 帳票を実行して、チャートを見てみましょう。
A chart generated from up-to-date data. (Salesforce is shown.)

関連コンテンツ

トライアル・お問い合わせ

30日間無償トライアルで、CData のリアルタイムデータ連携をフルにお試しいただけます。記事や製品についてのご質問があればお気軽にお問い合わせください。