Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Trapping Dataset Exception errors(Trapping Dataset Exception errors)
Trapping Dataset Exception errors [message #1403717] Fri, 25 July 2014 14:14 Go to next message
Keith Clark is currently offline Keith ClarkFriend
Messages: 11
Registered: July 2014
Junior Member
I have a situation where I need to preload a table of a database with values selected from a multiple select report parameter.

I have been able to successfully use the beforeOpen event handler of the dataset to modify the sql to write these values.

Problem that I get is the fact that since its an insert command, there is not result set, and the dataset throws an exception and stops.

Is there a way to trap the exception, or hide it and continue the report?
Re: Trapping Dataset Exceptio n errors [message #1403761 is a reply to message #1403717] Sat, 26 July 2014 09:04 Go to previous message
Colin Sutton is currently offline Colin SuttonFriend
Messages: 121
Registered: July 2009
Senior Member
Keith Clark <forums-noreply@xxxxxxxx> wrote:
> I have a situation where I need to preload a table of a database with
> values selected from a multiple select report parameter.
>
> I have been able to successfully use the beforeOpen event handler of the
> dataset to modify the sql to write these values.
>
> Problem that I get is the fact that since its an insert command, there is
> not result set, and the dataset throws an exception and stops.
>
> Is there a way to trap the exception, or hide it and continue the report?
You could create a stored procedure that gives a result, e.g 'success',
then use a stored procedure query data set type.

--
Colin
Previous Topic:Removing a dataset where clause based on parameter
Next Topic:ODA Designer Plug-In Dev: Parameter Data Type not set / used
Goto Forum:
  


Current Time: Wed Sep 25 14:41:28 GMT 2024

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

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

Back to the top