Dynamic Jasper Reports - How to display group value for every new page's first record?

Anyone with any suggesstion or solution is welcomed!!!

I have been using Dynamic Jasper (java). But i couldn't manage to find typical solution for one problem(better look for my report). The thing is that, for the column chosen as a group, it is working perfectly but every time it goes to the new page, the column picked as a group (its value is empty). I want to print the value of column chosen as a group, at the very first line of each new page to minimize confusions like "to whom or to which specific column belong the new page's data".
P.S. without addiny any page break, I simply want to print all the report data continously without displaying each group in each page!

In Jasper Studio, i have seen that we can simply use "Print in first whole band" to have this functionality but I couldn't manage to find an equivalent method for this in Dynamic Jasper.

For details, please check the attached file
 

assetozen's picture
Joined: Jul 17 2020 - 2:41am
Last seen: 1 year 6 months ago

2 Answers:

Assuming the field is in the group header you can set the "Reprint Header On Each Page" property for that band.

jgust's picture
4906
Joined: Jun 10 2010 - 6:39am
Last seen: 1 hour 31 min ago

Thanks @jgust
How can i set the "column" picked as "group by" to be added in the header ?

In Jasper Studio, i have seen that we can simply use "Print in first whole band" to have this functionality but I couldn't manage to find an equivalent method for this in Dynamic Jasper.

Long story in short: in JasperSoft there is a check box where you can check or uncheck to let the element appear in the first line of every new page. the check box is called "Print ln In First Whole Band". I want this functionality in my Dynamic jasper.

assetozen's picture
Joined: Jul 17 2020 - 2:41am
Last seen: 1 year 6 months ago
Feedback