Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Understanding onFetch
Jose
Question: Can I manually stop fetching data by returning false in onFetch?
More details: My understanding is that BIRT I could use onFetch to script whether there is more data to be fetch. I want to know if I am understanding right. For example I would like to stop fetching data base on a variable, something like:
initialize():
rowNum = 0;
maxRowNum = 5;//or maybe set it to a params
dataSet.onFetch():
rowNum++;
if ( rowNum < maxRowNum )
{
return false;
}
{
return true;
}
Find more posts tagged with
Comments
mwilliams
Hi Jose,
I have not done this before, so I don't know if that is the case or not. I'll look into it. If you go into your dataSet editor and look in the "Settings" section, you can set a max number of rows returned from the dataSource there.