How can i solve this? (2 records in same row)

Hey, i have a db like:
Type | Question | Answer | Picture
A      | x             |  y           | null
B      | abc         | def         | path
...

The report i build simple:
-------------------------------
$f{question}  $f{answer}    | detailband 1 (print when $f(type).equals("A"))
-------------------------------
| IMAGE |                            | detailband 2 (print when $f(type).equals("B")
__________________________________________________________________
And this works nice. 

But i would like to save some space and place:
| IMAGE |      | IMAGE |     
-> that means the 2nd record with type B should be in this case in the same row as the 1st with type B.

Do you have an idea or do you know a way how it is possible?

 

i found a semi-solution but still need to make it fine. (sorry, i translated it the wrong way -> i meant 2 records from the sql query in the same row)
When i add columns in the page Format and paste in the source: printOrder="Horizontal" it does exactly what i want.

1st data -> picture is left. 2nd data picture is right. 

 

but i have like 8 different detailbands and i need this option just for 2 detailbands.

Is it possible to make the same thing like adding multiple columns in pageformat just for 2 detailbands and the rest is default with just 1 column?

 

Here are some pictures: https://imgur.com/a/qgmYUzK

there you see i have different bands. The important one is detail6. There i want the picture and textfield to be printed horizontally. 
The other detailbands should be printed normally.

as_9's picture
447
Joined: Jan 11 2016 - 5:35am
Last seen: 4 years 3 weeks ago

Sorry, can you paste a screenshot to demonstrate your idea?

riodavid - 4 years 9 months ago

2 Answers:

Did you try to place the elements on top of eachother and just use the print when option in the element. So each image would have its own print when expression.
Should work, I just created a dummy report with 2 image element on top of eachother, with print when epxression and it worked.  

joseng62's picture
6199
Joined: Dec 5 2014 - 2:43am
Last seen: 3 months 3 weeks ago

The solution i found for this:

- creating a new subreport for the pictures
- Edit Page Format of subreport
- set Columns 

=> so u can have as many records you want horizontally

as_9's picture
447
Joined: Jan 11 2016 - 5:35am
Last seen: 4 years 3 weeks ago
Feedback