Newbie...Please help!

I have created a report that has many descriptive static text fields & a database that populates the values of each value field. I have filled the detail band & understand that I have to add a dummy footer to continue with the rest of my report. I have added the rest of my fields/data to the dummy footer.

I have 2 problems. 1.) Several of the static text fields are repeating on my second page - which I do not want. 2.) I need to know how to get my detail & dummy footer to stay together on one page. I have seen the posts that state that all you have to do is to add the <groupExpression>$V{REPORT_COUNT}</groupExpression> to each of the dummy footers, but when I add this expression, I get a syntax error on token "(", "/" & ")". I am not sure where the brackets are coming from since I don't have any in the expression. I attached my current version of the report - so that you can see what I am talking about. Any help you can provide would be greatly appreciated.
[file name=GeoTAX_Summary2-a72e7b3097a10a32537888e8d550f381.pdf size=143986]
ametz's picture
Joined: Aug 29 2007 - 2:17am
Last seen: 13 years 1 month ago

1 Answer:

1) You could put those static fields you don't want to repeat in the Title band as a sort of subtitle section or in the Column Header band with its printWhenExpression set to
$V{PAGE_NUMBER}.intValue() == 1</td></tr></tbody></table><br />
<br />
2) Though I'm not familiar with dummy footers/groups or how you've initialized your expressions, I know that Jasper Reports creates a temporary Java file to compile and validate its reports using a Java compiler, so that <table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>$V{REPORT_COUNT}</td></tr></tbody></table> becomes <table align="center" border="0" cellpadding="3" cellspacing="1" width="90%"><tbody><tr><td><b>Code:</b></td></tr><tr><td><pre>(java.lang.Integer)variable_REPORT_COUNT.getValue()</td></tr></tbody></table><br />
<br />
Be sure that you're pairing parentheses and brackets in all field/group/variable expressions.  The stack trace might point you to exactly the line where a comparable syntax error has occurred.<br />
<br />
Hope that helps,<br />
nickw's picture
Joined: Sep 4 2007 - 5:03am
Last seen: 5 years 4 months ago