Jump to content
We've recently updated our Privacy Statement, available here ×

ttucholski

Members
  • Posts

    4
  • Joined

  • Last visited

ttucholski's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I've created a main report that contains multiple subreports. All athe subreports are working. Within the main report I have a hyperlink that I would like to have it generate a new report (Annotation). The Annotations report has been created. It has one parameter (pnum) and dips a relational database to retrieve any existing annotations for that pnum. My problem is that I don't know how to configure the hyperlink within the main report to execute the Annotations report. I'm assuming that I need to call JRFillManager, JRExporter, etc in order for this to happen. I have java code to perfrom the load, fill and export functions but how do I call them (or a function that will perfrom all of these) within the hyperlink? What is the syntax within the hyperlink to do this? Attached is the main report jrxml. Any suggestions, supporting sample code would be appreciated. I have reviewed the demo/samples/hyperlink code and reviewed the hyperlink sections within the iReport User Manual and JasperReport Ultimate Guide. [file name=devSubreportR1.jrxml size=18815]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/devSubreportR1.jrxml[/file]
  2. Thanks! You were right. My problem was in my bindings. I got it thanks to your suggestions.
  3. I'm new to iReport and going through the iReport Users manual - chapter 9: subreports. I've created a main report and trying to pass two parameters to a subreport. These parameters will be used in a subreport query. My problem is the subreport query doesn't know about the two parameters. I'm not sure what I did wrong or left out; I did the following: 1. In the main report, created two parameters, gNum and dNum. gNum has a default value of $F{Calling} and dNum $F{Called}. 2. In the subreport parameters - Subreport(Other) tab I bound gNum and dNum to $F{Calling} and $F{Called}. 3. In the subreport I added the following query: select * from RESULT_SET where Calling_Number='$P{gNum}' and Called_Number='$P{dNum}' At this point when I compile the subreport I get the folling error: ÂCompiling to file... /home/twt/JavaApps/iReport/iReport1.3.0/devSubreportR1_subDetails.jasper -> /home/twt/JavaApps/iReport/iReport1.3.0/bin/classic.java Errors compiling /home/twt/JavaApps/iReport/iReport1.3.0/devSubreportR1_subDetails.jasper.net.sf.jasperreports.engine.JRException:ÂReportÂdesignÂnotÂvalidÂ: 1.ÂQueryÂparameterÂnotÂfoundÂ:ÂgNum ÂÂÂÂÂ 2.ÂQueryÂparameterÂnotÂfoundÂ:ÂdNum ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:267) ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:144) ÂÂÂÂatÂnet.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:105) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:127) ÂÂÂÂatÂnet.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:109) ÂÂÂÂatÂit.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:529) ÂÂÂÂatÂjava.lang.Thread.run(Thread.java:595) Compilation running time: 49. Why doesn't the subreport see the two parameters from the main program? I'm not sure but I think my problem may have something to do with my hash map. I don't completely understand hash map used within iReport. I have been working on this for a few days now and realize that it shouldn't be this complicated. I'm just not realizing what I'm doing wrong/not completing to make this work. Any suggestions would be greatly appreciated.
  4. I'm new to Jasper reports and the iReport tool. I attempted to go through the JasperReport tutorial using Netbeans 5.5 but was not able to get a clean build (opt/apache.... class not found). Therefore, I set out to create a new report using iReport. After downloading and unzipping iReport I am unable to start it up on my Linux box. The following error occurs when starting the startup.sh script: Exception in thread "main" java.lang.NoClassDefFoundError: it/businesslogic/ireport/gui/MainFrame Can anyone please direct me to installation and/or configuration directions. Is it true that documentation for iReports is only available via purchas? What about some good iReport tutorials?
×
×
  • Create New...