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

bjodasso

Members
  • Posts

    3
  • Joined

  • Last visited

bjodasso's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. I am wanting to pass parameters to a .jrxml file where my data source is not a SQL query, but values input into a JTable. I can easily get one row of data passed into the report but I cannot seem to find out how to pass in multiple values with the same hashmap key (column name from the table). See the code below for what I currently have. As you can see, since im not using a database connection, I just pass in an empty data source to the fillReport. Like I said I can get one row into the report fine, but if I try to pass an array of values into val, it won't work. Also, i'm just showing one column of the JTable here (itemName), but I think you get the picture. I want to pass multiple values for each key and have them all display in the report. Do I need to set up the report parameters or a dataset in a certain way to allow for this? Do I need to create a List element? and if I do what do I set the data source as for the list? Any help is appreciated thanks. Brad Code: for (int i = 0; i < mTable.getRowCount(); i++) { val = (String) mTable.getValueAt(i, 0); jasperParameter.put("itemName", val); } jasperReport = JasperCompileManager.compileReport(reportTemplate); jasperPrint = JasperFillManager.fillReport(jasperReport, jasperParameter, new JREmptyDataSource());
  2. I previously had been using version 3.7.5 I think and when I switched to 4.0, all my multi-axis charts are now showing all the Y-axis on the left side of the chart, previously I had the axis on both right and left sides. I could not find an option to switch them, am I missing something or is this a bug?
  3. I have the same issue. I created a report with an input control. It runs fine in iReport when prompting for value, but when uploaded to jasperserver, I get no prompt there and obviously an empty report. Post Edited by bjodasso at 10/05/2010 22:55
×
×
  • Create New...