Solved

Can I suppress a trigger error in Reports?

Posted on 2004-10-06
5
1,591 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

839 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