[#5235] - "Refresh Preview Data" in Query Editor not working for xpath Queries (and other)

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Major
Resolution:
Reopened
Component: Reproducibility:
Always
Assigned to:

The "Query Executor mode" in ReportQueryDialog.populateDataPreview() doesn't populate the specialParameters from the IReportConnection.

Solvable by adding:

connection.getSpecialParameters(hm);

before:

JasperFillManager.fillReport(jasper_report_obj,hm);

AttachmentSize
File ReportQueryDialog.java.diff562 bytes
staeff's picture
2
Joined: Jan 11 2011 - 5:51am
Last seen: 11 years 4 months ago

2 Comments:

#1

It's now open for a month. I'd fix it myself, if I had the rights to commit.

#2

I'm very sorry - I found that the submitted diff file is mistaken (it was the first I ever created.)

Since I can't attach another one, here is the correct one as text:

Index: ReportQueryDialog.java
===================================================================
--- ReportQueryDialog.java (revision 794)
+++ ReportQueryDialog.java (working copy)
@@ -2308,6 +2308,7 @@
else // Query Executor mode...
{
//Thread.currentThread().setContextClassLoader( reportClassLoader );
+ connection.getSpecialParameters(hm);
JasperFillManager.fillReport(jasper_report_obj,hm);
}
}

Feedback
randomness