Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » invoking dataset in beforeFactory event handler
invoking dataset in beforeFactory event handler [message #1170885] Mon, 04 November 2013 23:31 Go to next message
Gibran Shah is currently offline Gibran ShahFriend
Messages: 33
Registered: September 2013
Member
Hello,

I managed to get my dataset in the beforeFactory event handler as follows:

var dataSet = reportContext.getDesignHandle().getDataSets().get(2);

Now that I've got my dataSet, I'm wondering if there's a way to invoke it (i.e. start it gathering data). Can I do that?
Re: invoking dataset in beforeFactory event handler [message #1195112 is a reply to message #1170885] Mon, 18 November 2013 21:22 Go to previous message
Kristopher Clark is currently offline Kristopher ClarkFriend
Messages: 130
Registered: January 2013
Senior Member
Instead of grabbing the design handle of your data set I would just use the data engine to loop through your data. Take a look at this devshare

Towards the bottom of the code you'll see something like this

while (  ri.next( ) )
{  
 rowcount++
}


That just counts how many row's there are but you can collect the data from that same loop.
Previous Topic:Building BIRT viewer locally (4.3.x)
Next Topic:Individual Image DPI
Goto Forum:
  


Current Time: Tue Mar 19 07:10:46 GMT 2024

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

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

Back to the top