Skip to main content



      Home
Home » Archived » BIRT » invoking dataset in beforeFactory event handler
invoking dataset in beforeFactory event handler [message #1170885] Mon, 04 November 2013 18:31 Go to next message
Eclipse UserFriend
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 16:22 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 12:46:34 EDT 2025

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

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

Back to the top