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

robshep

Members
  • Posts

    5
  • Joined

  • Last visited

robshep'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. OK having trawled the forums, I've tried implementing new HashMaps for each params object delivered to the fillmanager. This appears to be working. Is this an issue? Post edited by: robshep, at: 2007/08/10 13:44
  2. I have sucessfully developed a report, using a scriptlet in iReport. I added the scriptlet to the classpath in iReport. It works great. When I deploy the report, with all the necessary Jars to the server where it will run, I get the following exception. Code:net.sf.jasperreports.engine.JRException: Incompatible net.sf.jasperreports.engine.JRDefaultScriptlet value assigned to parameter REPORT_SCRIPTLET in the TechniumCAST_Telephony_Itemised_Q0 dataset. at net.sf.jasperreports.engine.fill.JRFillDataset.setParameter(JRFillDataset.java:895) at net.sf.jasperreports.engine.fill.JRFillDataset.setFillParameterValues(JRFillDataset.java:652) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:603) at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:891) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:716) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:669) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) at com.techniumcast.admin.ipt.reporting.generating.ReportGenerator.main(ReportGenerator.java:116) The error isn't too useful as it doesn't tell me if it has found the Class or if it is wrong.... The rest of Jasper works fine. My driving code - to compile and fill reports - performs another report immediately prior to the one that fails... and that is working OK, just not the ones with the scriptlet.... It compiles fine also.. fails at fill time... any pointers are greatly appreciated.. Thanks Rob Post edited by: robshep, at: 2007/08/09 09:17
  3. This a rather newbiw question, but one which I haven't found the answer for yet. I can see that calls to a scriptlet can be made from within a textfield, for example. $P{REPORT_SCRIPTLET}.sayHello() this provides some form of output to the report. What if I wanted to call a void method on the scriptlet? such as the simplsitic example... $P{REPORT_SCRIPTLET}.addApples($F{NUM_APPLES}.intValue()) Where would this "per row" call go? many thanks Rob
  4. Perfect! Thanks lucianc. Your help is much appreciated. This works exactly as I described. Rob
  5. In my detail band I have 2 subreports and a supplementary group of elements as a small summary. naturally, the second subreport and all elements in group are floating, however I would like for the group of elements not to split accross a page as the subreports grow in height. I've tried most options available but can't produce the desired effect. One possibility is to use a page break before the group and set an expression on the break element to only enable the break of there is not sufficient space to print the whole group below (group has fixed height). Any help would be appreciated. Thanks
×
×
  • Create New...