lakshmi_pothana Posted December 11, 2007 Share Posted December 11, 2007 Hi, I am using jasper and iReport for generating reports. I have arraylist object and created datasource object out of it and passed to JasperManager.fillReport().It generated the report initially. The report generated is dynamic. The X and Y axis values that are part of report are say for example: Y-Axis values : 1 2 3 4 5 X-Axis values : a b c d e If i use the same x-axis values to generate report for other data, the report is not refreshing and i am displayed with the same report which has data that belong to previous selection. The problem here if we generate the report with same x axis values, the jrxml is unable to recognize it and couldn't generate new image for the same x-axis values. Please suggest a work around solution to this issue? Link to comment Share on other sites More sharing options...
itchytoes Posted December 12, 2007 Share Posted December 12, 2007 Hi -- I have found that with charts, the dataset resetType, resetGroup, incrementType and incrementGroup attributes are critical to controlling the data that appears in a chart and when things get reset. Have you tried adjusting these values to see what happens? Betty Link to comment Share on other sites More sharing options...
Teodor Danciu Posted December 13, 2007 Share Posted December 13, 2007 Hi, I'm not sure I fully understand what you mean, but I suspect you are actually talking about a report that contains a chart and that is displayed in HTML format tby a parent Web application. It appears that the chart image gets cached by the browser and you see the old chart even if you ran the report again using different data.If it is the case, then you might consider configuring the HTML exporter image servlet in a way that the images URLs in the generated output are always different.This can be achieved using a dummy parameter in the image servlet URI that you configure using the JRHtmlExporterParameter.IMAGES_URI. That line could look something like this: Code:exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, "path_to_image_servlet/image?myDummyParam=my randomValue&image="); You would need to make sure with each call the myRandomValue is different, so that the browser does not cache the chart image. I hope this helps.Teodor Post edited by: teodord, at: 2007/12/14 16:11Post edited by: teodord, at: 2007/12/14 16:12 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now