• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Data Source Index Problem in JASPER Reports

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me on the following issue:
I have a datasource like this:
private Object[][] data =
{"INST"},
{"Check", new Integer(1), new Double (900.00)},
{"EFT", new Integer(0), new Double (0.00)},
{new Integer(9)}
};

The problem I am facing is that I cant get the index to increment. Actually the second and the third rows are part of an iteration and if i give them as part of one group i get the result.
But the problem comes when i add the two values in the first and last position.
Is there any way to iterate a non-uniform datasource?
Secondly I also need to know whether we can have multiple datasources?
I need to generate a simple text file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic