Added report variable filler.

This commit is contained in:
2017-05-30 10:38:02 +02:00
parent 37b2dd7246
commit 1e785fd488
9 changed files with 131 additions and 4 deletions
+4
View File
@@ -32,6 +32,10 @@ void ReportViewer::setReport(ReportPtr report)
m_report->loadFromByteArray(&data);
m_report->setReportFileName(reportPath);
m_report->dataManager()->setReportVariable("dbPath", Context::instance().settings()->value("db/path", "").toString());
foreach (QString key, report->variables().keys()) {
m_report->dataManager()->setReportVariable(key, report->variables()[key]);
}
}
void ReportViewer::openPreview()