Custom Spreadsheet Reports¶
In addition to using aPriori's system-defined spreadsheet reports, you can define your own. It is often desirable to use existing, system-defined reports as your starting point.
The system-defined report XML files are in:
apriori_install\ext\cost-watchpoint-report\watchpoints\reportname.watchpoints.xml
The corresponding Excel template files are in:
apriori_install\ext\cost-watchpoint-report\watchpoints\templates\reportname.template.xls
File types¶
The typical spreadsheet report consists of an XML file defining the data to extract, and optionally, an Excel spreadsheet template file which determines how the output is formatted. To install a new custom report in aPriori, you can either:
-
Compress these files into a
.zipfile and install it by selecting:Tools>Spreadsheet Reports>Install Spreadsheet Reports
-
Copy the files into
user\apriori\version\watchpoint-report-defs
The output files either an Excel spreadsheet, or a comma-separated values (CSV) file, or an XML file.
Report Definition Files¶
-
.xml Required.
- Specifies what data to extract from aPriori. Name must end in
.watchpoints.xmlor the report is ignored when you try to run it from the UI (the restriction is not enforced when running from the command line).
- Specifies what data to extract from aPriori. Name must end in
-
.xls (or .xlsx or .xlsm) Optional.
- Specifies how to format the data. The convention used by Tools>Spreadsheet Reports>Install Spreadsheet Reports is to end the name in
.template.xls, and to place this file in atemplatesub-folder under the reports.xmlfolder. The template file must be specified with thetemplatePathattribute to the<report>tag in the.xmlfile, or it ignored.
- Specifies how to format the data. The convention used by Tools>Spreadsheet Reports>Install Spreadsheet Reports is to end the name in
-
.zip
- The
.xmlfile and the.xls(if defined) must be bundled into a.zipfile to be recognized by the aPriori Tools>Spreadsheet Reports>Install Spreadsheet Reports command.
- The
Report Output Files¶
-
.xls (or .xlsx or .xlsm)
- The default spreadsheet output file.
-
.csv
- A text output file containing comma-separated values. (Specified with a
generateCsv="true"attribute to the<reports>tag in the XML definition file.
- A text output file containing comma-separated values. (Specified with a
-
.xml
- A text output file containing XML. (Specified with a
generateXml="true"attribute to the<reports>tag in the XML definition file.
- A text output file containing XML. (Specified with a
For more information about the <report> tag and its attributes, see "Elements of Report Files".
Note:
Custom reports are installed locally and are only available to the user who installs them. They are not available to other users even though they may share the same aPriori database server.