Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

/api/reports/views/:id/table/data

This method returns table data in HTML format.

Resource Information

Request Parameters

Parameters

Detail

Example

id

ID of the table. This ID is part of the /api/reports/:id response.

123

filter

(Optional) Filter applied to the table, with following structure:

Name
Description
drilldown

Drilldown defined with attribute code and following structure:

Name
Description
opFilter operation type - please see list of supported values.
value/values(Optional) Depends on selected "op". Contains value or values for filter.


countOp

(Optional) Used with COUNT operation. Specifies the second operation used together with count.

Supported values: EQ, NEQ, GT, GTE, LT, LTE


In order to join multiple filters or apply two filters on the same parameter, attribute drilldown can be an array. "conditionType" attribute outside "drilldown" defines condition between drilldown array members and "conditionType" attribute inside drilldown member defines condition between attributes in the drilldown.




Code Block
{
   "drilldown": {
      "L_COUNTRY_OR_AREA": {
          "op": "EQ",
          "value": "Slovakia"
      },
      "L_TYPE": {
          "op": "IN",
          "values": [ "Type 1", "Type 2", "Type 3" ]
      },
      "L_DATE": {
          "op": "NOT_NULL"
      },
      "L_PRODUCT":{ 
         "op":"COUNT",
         "countOp":"LTE",
         "value":"816"
      }
   }
}

Example of a between filter:
{"drilldown":[{"L_ID":{"op":"GT","value":"10"}},{"L_ID":{"op":"LT","value":"20"}}]}



rowsFrom

(Optional) Rows from.

0

rowsTo

(Optional) Rows to.

10

columnsFrom

(Optional) Columns from.

0

columnsTo

(Optional) Columns to.

20
drilldownConfig

(Optional) Replaces the table drill-down with custom configuration. Both horizontal and vertical drill-down configuration can be replaced. Each configuration is an array with the following elements:

Name

Description

dataSetDrilldownAttributeCode of the attribute (e.g. L_CITY)
dataSetDrilldownAttributeSubset(Optional) ID of the used subset


If only one drilldown is specified (horizontal/vertical) the other one is left as currently in configuration for the request.


Code Block
{
	"horizontal":[
		{
			"dataSetDrilldownAttribute":"L_PRODUCT_TYPE"
		},
		{
			"dataSetDrilldownAttribute":"L_PRODUCT"
		}
	],
	"vertical":[
		{
			"dataSetDrilldownAttribute":"L_DATE",
	 		"dataSetDrilldownAttributeSubset":"0EE39yrVHY"
		}
	]
}	


Sample request/response

Using curl:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/table/data

The JSON format response:

Code Block
{
  "content" : "<tr><td data-column=\"0\" data-row=\"0\" style=\" color:rgb(77, 77, 77) !important ;  background-color:rgb(237, 237, 237); \">1,033,054,533,155<\/td><\/tr>"
}

Next steps

List siblings

Sv translation
languageja

/api/reports/views/:id/table/data

この方法は、HTMLフォーマットのテーブルデータを返却します。このメソッドは、テーブルデータをHTMLフォーマットで返します。

リソース情報

リソースURL 

https://service.belladati.com/api/reports/views/:id/table/data

HTTP方法HTTPメソッド

GET

リクエストパラメータ

リクエストパラメーター

パラメーター

詳細

id

テーブルのID。このIDはテーブルのID。このIDは、/api/reports/:id の一部です。レスポンスの一部です。

123

filter(任意)次の構造でテーブルに適用されたフィルタ:

(任意) 次の構造でテーブルに適用されるフィルター:

説明
drilldown

ドリルダウンが属性コードと次のような構造で定義されます:属性コードと次のような構造で定義されたドリルダウン:

説明
opフィルタ操作タイプ フィルター操作タイプ -  サポートされている値のリストをご参照してください。を参照してください。
value/values(任意)選択した「op」に依存します。フィルタの値または値を格納します。

(任意) 選択した "op" によって異なります。フィルターの1つまたは複数の値が含まれます。

countOp(任意) COUNT操作で使用されます。countと一緒に使用される2番目の操作を指定します。

サポートされている値: EQ、NEQ、GT、GTE、LT、LTE

複数のフィルターを結合したり、同じパラメーターに2つのフィルターを適用したりするために、属性のドリルダウンを配列にすることができます。"drilldown" の外側の "conditionType" 属性はドリルダウン配列メンバー間の条件を定義し、ドリルダウンメンバーの内側の "conditionType" 属性はドリルダウンの属性間の条件を定義します。



Code Block
{
   "drilldown": {
      "L_COUNTRY_OR_AREA": {
          "op": "EQ",
          "value": "Slovakia"
      },
      "L_TYPE": {
          "op": "IN",
          "values": [ "Type 1", "Type 2", "Type 3" ]
      },
      "L_DATE": {
          "op": "NOT_NULL"
      },
      "L_PRODUCT":{ 
         "op":"COUNT",
         "countOp":"LTE",
         "value":"816"
      }
   }
}

Example of a between filter:
{"drilldown":[{"L_ID":{"op":"GT","value":"10"}},{"L_ID":{"op":"LT","value":"20"}}]}



rowsFrom(任意)行から

(任意) 行から

0

rowsTo(任意)行まで

(任意) 行まで

10

columnsFrom(任意)カラムから

(任意) 列から

0

columnsTo(任意)カラムまで

(任意) 列まで

20
サンプルリクエスト/レスポンス
drilldownConfig

(任意) テーブルのドリルダウンをカスタム構成に置き換えます。水平および垂直の両方のドリルダウン構成を置き換えることができます。各構成は、次の要素を持つ配列です:

説明

dataSetDrilldownAttribute属性のコード (例: L_CITY)
dataSetDrilldownAttributeSubset(任意) 使用されたサブセットのID

1つのドリルダウン (水平/垂直) のみが指定されている場合、もう1つのドリルダウンは現在リクエストの構成のままです。


Code Block
{
	"horizontal":[
		{
			"dataSetDrilldownAttribute":"L_PRODUCT_TYPE"
		},
		{
			"dataSetDrilldownAttribute":"L_PRODUCT"
		}
	],
	"vertical":[
		{
			"dataSetDrilldownAttribute":"L_DATE",
	 		"dataSetDrilldownAttributeSubset":"0EE39yrVHY"
		}
	]
}	


リクエスト / レスポンスサンプル

Curl使用:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/table/data

JSONフォーマットの応答JSONフォーマットのレスポンス:

Code Block
{
  "content" : "<tr><td data-column=\"0\" data-row=\"0\" style=\" color:rgb(77, 77, 77) !important ;  background-color:rgb(237, 237, 237); \">1,033,054,533,155<\/td><\/tr>"
}
Next steps

次に

List siblings