Getting Custom Formats for Numbers

Gets a list of the custom format numbers defined in a document.

Request

GET <webiURL>/documents/{documentId}/formats

Where:

  • {document_id} is the document identifier retrieved from the list of documents
Response

Response type: application/xml or application/json

Response body: description of the custom formats used in the Web Intelligence document.

Example

GET <webiURL>/documents/4326/formats

<formats>
    <format type="Custom" sample="1,235">
        <template positive="#,##0" negative="[red]#,##0" zero="No value" undefined="NaN"></template>	
    </format>
</formats>

In this example, negative numbers are in red.