Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Replace total.count() aggration method(Replace total.count() aggration method)
Replace total.count() aggration method [message #945604] Mon, 15 October 2012 13:18 Go to next message
vasanth kumar is currently offline vasanth kumarFriend
Messages: 4
Registered: October 2012
Junior Member
Hi All,

In my report,To display the total number of records I am using total.count() for total no.of records. But my client requirement is to avoid aggregation function in report.
So, Many I know is there any alternative way to present the total no.of records in report.

It a great help if you provide the solution.

Regards,
Balu
Re: Replace total.count() aggration method [message #947377 is a reply to message #945604] Wed, 17 October 2012 03:24 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Every bound item should have the RowNum variable available. You could add a binding that references this value. Then in the detail just add code in the oncreate like
reportContext.setGlobalVariable("mytotalrows", this.getRowData().getColumnValue("nameofbindingyoucreated");

Then you can reference it later by calling reportContext.getGlobalVariable"mytotalrows");

Jason
Previous Topic:Integration of Data on real time
Next Topic:How to Connect to dynamic datasource using jdbc datasource
Goto Forum:
  


Current Time: Fri Dec 19 20:25:22 GMT 2014

Powered by FUDForum. Page generated in 0.03080 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software