Jump to content
We've recently updated our Privacy Statement, available here ×

Capture row count in iReport


jlopes151

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Goto it here's what I did

 

Use a frame for your table rows, insert the table fields into the frame.

 

From the main menu select Format > Styles in the Styles dialog there

should be the default style. Select it then click modify. Leave the

Default condition, click the Add button. In the expression editor

pane enter the following:

new Boolean($F{ROWNUM}.intValue() % 2 == 0). The ROWNUN field is

available in any RDBMS table so don’t worry. All you need to do is

the set the bgcolor and ADD another style to the default for the

alternate condition as in new Boolean($F{ROWNUM}.intValue() % 2 != 0)

 

Select the row frame in the Document Structure pane, select the

frames properties, uncheck the Transparent checkbox, make sure the

style is set to the default_frame and that the “Print repeated valuesâ€

checkbox is checked.

 

That’s it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...