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

antoniyski

Members
  • Posts

    6
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by antoniyski

  1. At the moment my report prints like 

    Male     Female     All

      5              4             9  

      6             6             12 

      7             8             15

      5              4             9 

      ...             ...             ..,

    I want it like this

    Male     Female     All     Male     Female     All     Male     Female     All     Male     Female     All    

    5              4             9          6             6             12        7             8             15       5              4             9      

    On more detail, number of columns is not a constant so I can't use columnCount="numberOfColumns", printOrder="Horizontal"

    Can someone give an advice for this.

     

  2. I'm trying to iterate trough List<Object[]> passed to jasper report, but I only can get to each array, but fail to get each Object of the array.

    This display my List - [Ljava.lang.Object;@173cf26, [Ljava.lang.Object;@24fde0, [Ljava.lang.Object;@9796d8, [Ljava.lang.Object;@304c8b,

    How can I get arrays properties

    [Ljava.lang.Object;@f165e1]
  3. Useing hibernate, writing HQL query, applying list() method on query - query.list() return an array of Object.  If I test the result to the console with the following code:

    List<Object> result = (List<Object>) query.list();
            Iterator itr = result.iterator();
            while(itr.hasNext()){
               Object[] obj = (Object[]) itr.next();
               for (int br = 0; br <= obj.length-1;br ++) {
                   System.out.print(obj[br].toString() + ",");
               }
               System.out.println();
            }

    it will print N number of Objects and each Object N number of contents. (for example it will print 3 Objects and theirs 20 properties, or 7 Objects and theirs 51 properties....depends on conditions changeing the query). I want to pass what query.list() will return to a report.

    My question is how to pass it, how to display each Object and it's variable properties in the report.

×
×
  • Create New...