Creating a Ranking in a Report Element

Usage

Creates a ranking in a report element of type Table (HTable, VTable, XTable, and Form), Section, or Visualization.

Remember You can define only one ranking in a report element.
Request

POST /documents/<documentID>/reports/<reportID>/elements/<elementID>/ranking

Request body: the ranking definition.

Response

Response type: application/xml or application/json

The response is a message stating the success or failure of the request.

Example

POST /documents/17281/reports/1/elements/20/ranking

Request body:

<ranking calculation="Count" top="3" bottom="3">
    <basedOn>=[Number of guests]</basedOn>
    <rankedBy>=[Year]</rankedBy>
</ranking>

Response:

<success>
    <message>The resource of type "Ranking" has been successfully created.</message>
</success>