Jump to content
Changes to the Jaspersoft community edition download ×

Counting rows in datasource


2004 IR Help

Recommended Posts

By: primarykey - primarykey

Counting rows in datasource

2005-01-05 05:50

Hi. I want to count rows that come from my custom datasource. But when I do this, I take all row counts as 1. What should I do?

Note : I'm not using a group mechanism. I'm showing my fields in the detail section of my report. So please help me...

My using code snippet is:

--------------------------

<variable name="siraNo" class="java.lang.Integer" resetType="Report" calculation="Count">

<initialValueExpression>($V{siraNo} != null)?(new Integer($V{siraNo}.intValue() + 1)):(new Integer(1))</initialValueExpression> -->

</variable>

---------------------------

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...