Drilldown report loading issue

0

Hello everybody,

 
i am new to Jasper Report Server and walked through the following tutorial, which was realy helpfull for creating a drilldown report. http://www.jaspersoft.com/blog-entry/jasperreport-server-repository-advantage
I created a report that passes a parameter to another report by a hyperlink. This works well so far. But after the drilldown report shows up, i allways have to click the refresh button, to get the report loading its data. Otherwise it only displays a blank page. 
How can I avoid this behaviour, so that the drilldown report automaticaly shows the data.
 
Thanks in advance for any help, and sorry for my bad english.
 
regards,
 
Carsten
c.minkwitz's picture
Joined: Sep 24 2013 - 7:50am
Last seen: 6 years 4 months ago

1 Answer:

0

Hi Carsten,

 
 
Please find the below path which you need to modify for the report.view.runtime javascript file 
 
\JasperSoft\apache-tomcat\webapps\jasperserver-pro\scripts\report.view.runtime
 
Report.initialize = function() {
    this.commonInit();
 
    Report.exportForm = $(Report.EXPORT_ACTION_FORM);
    this.nothingToDisplay = $('nothingToDisplay');
    Report.refreshReport();//add new line
    if ($(Report.DATA_REFRESH_BUTTON)) {
    $(Report.DATA_REFRESH_BUTTON).observe('mouseup', function() {
    this.rerunReport({freshData: true});
    }.bindAsEventListener(this));
    }
    
    Please go to the line no 39 and add Report.refreshReport(); 
 
vitthal_vitthal's picture
Joined: Nov 11 2013 - 9:28pm
Last seen: 4 years 9 months ago
Feedback