Solved

Can I suppress a trigger error in Reports?

Posted on 2004-10-06
5
1,578 Views
Last Modified: 2008-01-09
Hi all,

I have a report that generates a blank page if no data is found.  What I'm trying to do is display a custom error message if no data is found and return the user to the parameter form.

Most of the work is performed in the After Parameter Form trigger, so I need to check in there.

I did put something in there to return FALSE if no data is found, but that displays the Reports generated error : "REP-0771 : After Form trigger failed."

I'd like to suppress this message and just display my own, e.g. "No data found, returning to parameter form" or something like that.

Any ideas?  Or any other way of stopping the blank page appearing if no data is found, without putting all the SQL in the process that launches the report?

Thanks,

Grendel.
0
Comment
Question by:Grendel666
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Mark Geerlings
ID: 12240072
One option may be to do the checking in a validation trigger (or in a program unit called from a validation trigger) on the list item in the parameter form, instaed of in the After Parameter Form trigger.  If that returns FALSE, the user will still be in the parameter form.
0
 
LVL 35

Expert Comment

by:Mark Geerlings
ID: 12240094
Oops! I intended that to read:
"... on the last item..."
not:
"... on the list item..."

I see that I also spelled "instead" wrong, but that probably was not confusing.
0
 
LVL 1

Author Comment

by:Grendel666
ID: 12246600
Thanks Mark,

That works, but if I return FALSE from that trigger, I get another system error : "REP-0546 : Invalid parameter input."

Any ideas how to get rid of this one?
0
 
LVL 35

Accepted Solution

by:
Mark Geerlings earned 250 total points
ID: 12248288
Not in Oracle Reports - its not very sophisticated at accepting user input.  We use the Parameter Form for simple reports, but if we need any complex criteria or conditions, we use an Oracle Form to gather the parameters, then call the report and pass the parameters (bypassing the parameter form).
0
 
LVL 1

Author Comment

by:Grendel666
ID: 12248327
Thanks Mark,

Looks like I'll have to do some kind of workaround like that.

Thanks for your help, I'll assign you the points.

Grendel.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Retrieve Values 4 57
Converting a row into a column 2 44
Oracle sql query 7 49
How to free up undo space? 3 29
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now