Skip to content
Snippets Groups Projects
Commit 3d18be00 authored by Andre Loreth's avatar Andre Loreth
Browse files

#1051579: Report_lib: Add default values for #exportReport(...)

parent b682d1b4
No related branches found
No related tags found
No related merge requests found
......@@ -35,5 +35,9 @@
<name>d72d1eb1-461c-442c-881d-48fb71b89316</name>
<view>OfferDrawer_view</view>
</neonViewReference>
<neonViewReference>
<name>02938f44-bc24-4542-916b-8db5d1976b40</name>
<view>OfferReport_view</view>
</neonViewReference>
</references>
</neonContext>
......@@ -179,15 +179,18 @@ Report.prototype.setReportData = function(pReportData) {
* Export the report
* @param {String} pFilename
* @param {Array} pCondition a sql-condition (can also be a prepared condition)
* @param {Number} pExportFormat the export format. e.g. report.REPORT_EXPORT_PDF
* @param {Number} pExportFormat the export format. e.g. report.REPORT_EXPORT_PDF. Defaults to PDF.
* @param {String} pWhereOrder see documentation for report.exportToBytes()
* @param {String} pLanguage
*
* @return {Array} [filename, data_bytes]
*/
Report.prototype.exportReport = function(pFilename, pCondition, pExportFormat, pWhereOrder, pLanguage) {
if (pFilename == undefined) pFilename = "";
if (pCondition == undefined) pCondition = "";
if (pExportFormat == undefined) pExportFormat = report.REPORT_EXPORT_PDF;
if (pWhereOrder == undefined) pWhereOrder = null;
if (pLanguage == undefined) pLanguage = null;
var doc = [pFilename, report.exportToBytes(this.reportName, pCondition, pExportFormat, pWhereOrder, this.reportParams, this._getReportDataFields(), this._getReportDataValues(), pLanguage)];
return doc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment