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 09:18 Go to next message
vasanth kumar is currently offline vasanth kumar
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] Tue, 16 October 2012 23:24 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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: Sat Aug 30 10:28:10 EDT 2014

Powered by FUDForum. Page generated in 0.01703 seconds