Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleSCHEMA

SCHEMAリクエストは、指定されたレポートについて、レポートのカラムおよびフィルターのメタデータも含むスキーマ情報を返します。これを実行するコードは以下の通りです。

Code Block
ReportServiceRequest rsr = new ReportServiceRequest();
ReportServiceResponse rs = null;

rsr.setLoginId(this.username);
rsr.setPassword(this.password);
// This is the primary organization
rsr.setOrgId(new Integer(1));
rsr.setReportRequest("SCHEMA");
rsr.setReportId(12345);
// This is the report's web service name. If ReportId is set, this is not needed
rsr.setObjectName("MYREPORT");

rs = ReportService.remoteAdministrationCall(rsr);

返されるReportServiceResponseオブジェクトは、以下の項目で構成されます。

応答要素

データ型

説明

取得コード

ReportId

Integer

指定されたレポートのID

getReportId()

StatusCode

String

Webサービスリクエストのステータス

getStatusCode()

FormatCode

String

指定されたレポートのフォーマットコード

getFormatCode()

ReportType

String

指定されたレポートのレポートタイプ

getReportType()

LastRunStatus

String

最後のレポート実行のステータスコード

getLastRunStatus()

LastRunTime

Decimal

YYYYMMDDHHMMSS形式で示されるレポートの最終実行時間

getLastRunTime()

ReportName

String

指定されたレポートの名前

getReportName()

BinaryData

String

イメージ、HTML、CSV、またはPDFのBase64エンコードバイナリーチャンク

getBinaryData()

ViewName

String

レポートが依存するビューの名前

getViewName()

HitCount

Integer

指定されたレポートがアクセスされた回数

getHitCount()

DrillCode

String

ドリルタイプ(レポートで使用可能な場合)

getDrillCode()

Private

 

レポートが個人用または共有のいずれであるかを判別します。

getPrivate()

Results

Array(ReportRow)

レポート結果セットの結果が含まれる、ReportRowオブジェクトの配列(ReportRowを参照)

getResults()

ContentType

String

返されたオブジェクトのMIMEコンテンツタイプ。可能な値は以下の通りです。

  • 「text/html」
  • 「text/comma-separated-values」
  • 「image/png」
  • 「application/pdf」

getContentType()

Messages

Array(String)

レポートがサーバー上で実行されるときにデバッグ情報を示す文字列の配列。エラーのデバッグおよび追跡に使用します。

getMessages()

Charts

Array (ReportChart)

HTMLレポート応答に付加される、複数のグラフビットマップを含むReportChartオブジェクトの配列(ReportChartを参照)

getCharts()

Columns

Array (ReportSchema)

レポート結果セットの各カラムの情報、およびユーザープロンプトフィルターデータをレポートに渡す必要があるかどうかを示す情報が含まれるReportSchemaオブジェクトの配列(ReportSchemaを参照)

getColumns()

...