dizou Posted February 28, 2013 Share Posted February 28, 2013 I have two reports: Summary and Detail. They are both located in the same directory and I am trying to do this stuff in iReport 5.0.1. I am trying to make a field in my Summary report so that I can click on it and it will run and show the detail report. The field is: $F{reason_id}.In the Summary report I created a hyperlink in one of my fields like so:Hyperlink target: SelfHyperlink type: ReportExecutionIn my Link parameters I have the parameters:_report: detailreason_id: $F{reason_id}start_date: $P{start_date}end_date: $P{end_date}When I click Preview in my summary report, I enter all my parameters, then I get this error:Error filling print... Error evaluating expression : Source text : detail net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression : Source text : detail at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:203) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:591) at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.java:559) at net.sf.jasperreports.engine.fill.JRFillHyperlinkHelper.evaluateHyperlinkParameters(JRFillHyperlinkHelper.java:82) at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillTextField.java:504) at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextField.java:431) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:259) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:459) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2044) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:778) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:288) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:151) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:909) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:822) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:276) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:745) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:891) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Caused by: groovy.lang.MissingPropertyException: No such property: nrt_detail for class: Sample_1362063546538_723686 at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:86) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:239) at Sample_1362063546538_723686.evaluate(calculator_Sample_1362063546538_723686:229) at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.java:190) ... 20 more Print not filled. Try to use an EmptyDataSource... What is going on here and how do I fix it? Link to comment Share on other sites More sharing options...
ajinkya_c Posted February 28, 2013 Share Posted February 28, 2013 Hi ,First of all if you tried to see hyperlink in iReport then it is not possible, hyperlink works with webbased jasperserver report only.what i understand is you have a summary report, when you drilled down from a field some parameters are pass through hyperlink and detail report gets opened from that parameters.so explain with what you are trying to do that with iReport or jasperserver. Link to comment Share on other sites More sharing options...
dizou Posted February 28, 2013 Author Share Posted February 28, 2013 Ok, so how would I create a drill down that will work in iReport? 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