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)
How to throws an exception while no data found?
yudi.irianto
<p>Dear all,</p>
<p> </p>
<p>How can i throw an exception while no data found (from main dataset) ? So, while no data captured from the main-dataset, message will populate before BIRT running.</p>
<p> </p>
<p>Thx & Rgrd,</p>
<p>Yudi</p>
Find more posts tagged with
Comments
mwilliams
You'd probably have to run your query before calling your report since the data isn't called within BIRT until an element within the report uses the data set is being created. One way this has been handled is by using the data engine api to run your data set in the beforeFactory to see if any data is returned. If not, you could drop your elements and display an error in your report or redirect or something. The issue with this is that the data engine is a private api that has been public for a while, so there is no guarantee it'll continue to be around.<br><br><a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/822-data-engine-api-to-check-data-set-values/'>http://developer.actuate.com/community/forum/index.php?/files/file/822-data-engine-api-to-check-data-set-values/</a><br><br>Another
option is to check the dataSet while running the report, then hide the report elements and display an error message.