Solved

Can I suppress a trigger error in Reports?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Converting a row into a column 2 53
help on oracle query 5 44
dbms_crypto.decrypt   errors out 6 31
having some issue on pl sql procedure 1 19
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

772 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