Settings given for an express report match with those for a cube, and dashboard block.
The file that contains description of the published report is named <report identifier>.plist and is stored in the folder <path to the folder with installed Foresight Analytics Platform>/Mobile/Pub/<identifier of mobile application container>/Analyzers/<report identifier>.
Express report settings contain sections:
Report. Main report parameters.
Resources. Description of report topobases in use.
Report parameter settings:
Property | Description |
datasource | Identifier of report data source. |
mode | The mode, in which the report opens on a mobile device. This is the mode that was used to save the report the last time before it was opened. The following values are available:
|
version | Report version. Number of minutes starting from January 1st, 2011. |
modes | Modes available on a mobile device. Value is the <dict> element, which properties may be true or false, depending on particular view availability in the report:
|
dimensionByColumn | Identifier of the dimension in columns. |
dimensionByRow | Identifier of the dimension in rows. |
metrics | Identifier of the dimension, which is a metric. |
objectives | Identifier of the dimension, which is an observation object. |
timeline | Identifier of the dimension, which corresponds to a timeline. |
selection | Array of dimension selections. Value is the <dict> element with the properties, which names match dimension identifiers. Values of these properties are arrays that contain keys of selected dimension elements. Property value for a calendar dimension is the <dict> element that has the following properties:
|
fixedDimensions | Array of identifiers for the dimensions included into Fixed area. |
dimensionKeys | Dimension metadata. Value is the <dict> element with the properties, which names match dimension identifiers. Property value for a calendar dimension is the <dict> element that has the following properties:
|
Properties of report view settings:
Property | Description |
grid | Table settings. |
chart | Chart settings. |
map | Map settings. |
bubblechart | Bubble chart settings. |
A file that contains settings of a published express report may look as follows:
<plist version="1.0"> <dict> <key>Report</key> <dict>
<key>datasource</key> <string>CUBE_WDI_COPY5_COPY4</string> <!-- Data source identifier--> <key>mode</key> <string>Table</string> <!-- Mode, in which report must open on a mobile device --> <key>version</key> <string>994336</string> <!-- Number of minutes starting from January, 1, 2011 --> <key>modes</key> <dict> <!-- Array of modes available on a mobile device --> <key>grid</key> <string>true</string> <key>chart</key> <string>true</string> <key>map</key> <string>true</string> <key>matrix</key> <string>false</string> </dict>
<key>dimensionByColumn</key> <!-- Dimension by columns--> <string>DIM_CALENDAR_190</string> <key>dimensionByRow</key> <!-- Dimension by rows--> <string>DIM_COUNTRIES_172</string> <key>metrics</key> <string>DIM_INDICATORS_COPY3_986797</string> <key>objectives</key> <string>DIM_COUNTRIES_COPY4_986794</string> <key>timeline</key> <string>DIM_CALENDAR_190</string> <key>selection</key> <dict>
<key>DIM_CALENDAR_190</key> <!-- Array of dimension selections--> <array> <dict> <key>value</key> <string>631152000</string> <key>level</key> <string>1</string> </dict> </array> <key>DIM_COUNTRIES_172</key> <array> <string>924</string> <string>534</string> </array> <key>DIM_INDICATORS_180</key> <array>
<string>456</string> </array> </dict> <key>fixedDimensions</key> <!-- Dimension located in the Fixed section--> <array> <string>DIM_INDICATORS_180</string> </array> <key>dimensionKeys</key> <!-- Calendar dimension metadata--> <dict> <key>DIM_CALENDAR_190</key> <dict>
<key>date</key> <string>START_DATE</string> <key>level</key> <string>BLOCK_TYPE</string> </dict>
<key>DIM_COUNTRIES_172</key> <string>ID</string> <key>DIM_INDICATORS_180</key> <string>ID</string> </dict> <key>settings</key> <!-- Report settings, not used on a mobile device--> <dict> <key>grid</key> <!-- Table settings-->
...
<key>chart</key> <!-- Chart settings-->
...
</dict> <key>Resources</key> <!-- Section describing report topobases--> ...
</dict> </plist>
See also:
Purpose and Main Features: Plist | File Structure of Published Mobile Application