开发者

Multiple cross tabs in single jasperreports and grouping them

Can anyone开发者_StackOverflow please tell me how to group crosstabs w.r.t report level group. i.e. in my problem i am using three crosstabs in details band.....and i want this page to be grouped by coutryname. eg.if country=Australia print three crosstabs and if country changes to india print three crosstab on the next page


Use a subdataset for your Crosstab, which take the country as parameter.

In the main report, call for a list of the country you want to display. This will produce one detail band for each country (ex: $F{Country})

In the detail band use the value of the country field ($F{Country}) as parameter for the subdataset you use in your cross tab.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜