开发者

group expression in jasper reports

开发者 https://www.devze.com 2022-12-24 07:10 出处:网络
I\'ve a report which has a has 5 columns on each page and I have a group defined which shows columns related to

I've a report which has a has 5 columns on each page and I have a group defined which shows columns related to

A | B | C | D | E - main column

X | Y | Z - group - A is the key

I have my query ORDER BY A, but when it is displayed it doesn't print the results in next page if A is changed.

Following is how I have a group defined.

<group name="A" isResetPageNumber="true" >
    <groupExpression><![CDATA[$F{A}]]></groupExpression>
    <groupHeader>
        <band/>
    </groupHeader>
    <groupF开发者_StackOverflow社区ooter>
        <band/>
    </groupFooter>
</group>

does A need to be part of the group?


Use:

<group name="A" isStartNewPage="true" isReprintHeaderOnEachPage="true" 
       isResetPageNumber="false" >


I answered my own question. I had to add A with X, Y, and Z in order for group to work.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号