From 97903181bbd3f1bad37704e01d07db28cf014d13 Mon Sep 17 00:00:00 2001 From: Martin Nicolas Cuesta Date: Fri, 25 Jan 2019 01:47:14 -0300 Subject: [PATCH] [MOD] Allow ConnectionExpression as DataSource for Subreports --- jasper_reports/JasperReports/jasper_report.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jasper_reports/JasperReports/jasper_report.py b/jasper_reports/JasperReports/jasper_report.py index 457684c..c613e9f 100644 --- a/jasper_reports/JasperReports/jasper_report.py +++ b/jasper_reports/JasperReports/jasper_report.py @@ -177,7 +177,10 @@ def extract_properties(self): data_source_expression = tag.findtext(text1 % ns, '') if not data_source_expression: - continue + text2 = '{%s}connectionExpression' + data_source_expression = tag.findtext(text2 % ns, '') + if not data_source_expression: + continue data_source_expression = data_source_expression.strip() m = DATA_SOURCE_EXPRESSION_REG_EXP.match(data_source_expression)