This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Jasper Reports: Problem with Cross Tab multiple columns

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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.
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!