• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Jasper Reports: Problem with Cross Tab multiple columns

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I think the way that cross tab works with multi-columns is: It builds like a hierarchy of columns. I want a little different implementation. Lets say for example I have an ArrayList of all the accounts in a bank. Each Account object has the following fields: holderName(String), amountInSavingsAccount (int) and amountInCheckingAccoun(int). I would want to loop through list using a Crosstab in the following fashion:



____________________________________________________________________________________

Amount in Checking Account Amount in Savings Account

____________________________________________________________________________________

John Doe 10 20

Java Doe 10 20

Jane Doe 10 20

Jack Doe 10 20

____________________________________________________________________________________

Total 50 100

____________________________________________________________________________________



The problem is, with multiple unrelated columns in an object, I'm not sure how to configure them in a crosstab in iReports. Any suggestions/inputs?



Thanks in anticipation,

Andy.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andy and welcome to Javaranch!

Hopefully an expert replies here but if not I can only recommend you post on the Jasper Reports mailing list.
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic