Oracle states go to OTN for this:If the criteria isn't met I don't want for

Can you easily recover from, bypass or work around the problem? = YES
Does your system or application continue normally after the problem occurs? =
YES
Are the standard features of the system or application still available; is the
loss of service minor? = YES
### Did it work before? If yes, what have you changed? ###
No, We were told this was fixed with 10G so we upgraded to 10G. We have a
report and we want it to execute if it's less than 10 records if not we want a
message to come up that the report needs to be scheduled.
Well we run the report and it displays exceeded record count but the format
still runs so no time saved on the web.
If the record count was exceeded we want to HALT the system and not go any
farther.
Now if we could modify the system message 1825 we would be o.k. But we don't
know if that is going to work. If we could change the message we would be
o.k. with that. that would mean changing the system codes though.
### How is the Report being called (Command line, URL or via Oracle Forms): ###
If false comes back in the beginning then we don't want any report formatting
to be done. Right now the format is done it seems but no data is displayed
because criteria isn't met.
So we dont wnat the formatting to be run when criteria isn't met. But for
some
reason it still runs and takes time.
See we have some reports on the web that can only be ran by date range right
now the clients can only run the reports for a 6 months range.. Well some
clients have a lot smaller record count. So we want to change the way the
reports are ran to a records count. If the count is large than said amount
then a message comes up that states the report has to be scheduled. If the
amount is under said amount then the report runs.
So at this time in the report we do a count then we move onto will the report
run or not if over the amount we want to abort the process but we don't want
the client to see the abort. We definately don't want the client to sit and
wait for the format to run when NO Data is to be returned.
### Error messages and error scenario: ###
So what we want is too see a message "Schedule the report count exceeded" and
NO formatting done. If under amount we want the report to run.
### Provide a detailed step-by-step description of your problem or question: ###
Or is there a way to customize the messages the client / users will see. And
no formatting time for no records returned.
Contact me via : E-mail -> [email protected]
Text continued in next action...
20-SEP-04 18:39:53 GMT
Text continued from previous action...
20-SEP-04 19:18:51 GMT
New info : Is there a way if the error messages have to come up that we can
hide the message or have another screen cover that error message something to
cover the message so that the user doesn't see the error message.
20-SEP-04 19:30:23 GMT
Hi Darlene,
Thank you for using MetaLink. Iam currently working on a very critical issue.I shall review/research your issue at the earliest opportunity and w
ill update the SR / call you as soon as we have relevant information. Thank you
for your patience.
Best Regards,
Seema,
Oracle Support Services
STATUS
=======
@WIP -- Work In Progress
20-SEP-04 19:30:30 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 00:32:18 GMT
Hi Darlene!
If you are calling the report from a form, try using the EXIT_FORM line in your code.
Thanks and Regards,
Seema
21-SEP-04 00:33:01 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 14:09:20 GMT
New info : We will try it and let you know.
21-SEP-04 14:19:04 GMT
New info : We are not calling the report from a form so this won't work. Any
other way. We are needing to do this badly.
21-SEP-04 14:39:06 GMT
New info : Can I get detailed steps about how to customize the system message
or hide the message when we abort the report?
21-SEP-04 15:38:39 GMT
Hi Darlene!!
As talked to you on phone, here are the steps for you to try.
The below has been run as a test case using emp table in scott schema of a database
1) create a summary coloumn say cs_1 in the data model.
2) point the function to count.
3) Point the source to what ever's count you want it to be pointed to(say empno of emp table of
scott schema)
4) create a user parameter say NO_ROWS
5) in its property palette make its data type number and initial value as 1
6) I had teh following query for my report:
select empno, ename from emp
where rownum <= :no_rows
This means that the report that will be generated will consist of a total no of NO_ROWS(that we
shall be specifying at run time). The before report trigger(mentioned in 7 below) shall assure
that whenever we specify NO_ROWS greater than 5 then the report will display a customized pop up
message.
7) create a before report trigger as:
function BeforeReport return boolean is
user_excp EXCEPTION;
begin
if :cs_1 >5 then
raise user_excp;
return (false);
else
return true;
end if;
EXCEPTION
WHEN user_excp then
SRW.MESSAGE(30, 'Data is more please schedule this report:');
raise SRW.PROGRAM_ABORT;
return (false);
end;
This way when u run a report, an argument is asked whether how many rows do you want to be
displayed as in the parameter NO_ROWS. then you specify the number. If that number is greater
than 5(in this case, due to if :cs_1 > 5 then....) then it will pop up a message saying "Data is
more please schedule this report:"
In case you do not want to specify NO_ROWS..then you need not put that and modify the report
query as "select empno, empname from emp;" i.e. without where clause.
21-SEP-04 16:49:30 GMT
New info : we will try this then update the TAR.
21-SEP-04 16:58:09 GMT
ok you update the tar when you try the above steps.
STATUS:
@CUS
23-SEP-04 02:16:00 GMT
New info : Information from the person that did this suggestion step by step.
I tried this step by step, but unfortunately, it doesn't work the way we want.
First with this suggestion, the user needs to choose how many records they
want
to get, or we default a number of records, in order to run the report. The most
important thing is, whenever you specify the statement return false or raise
SRW.PROGRAM_ABORT in the before report trigger, the system message will pop up.
I really hope that people from Oracle would let us know how to customize the
system message or hide it.
23-SEP-04 14:23:04 GMT
New info : I just thought that we have some sort of message, which I guess is
from the database, when we do claim search on client inquiry. I am just
wondering if we could try the same thing to the report.
The some sort of message looks like this on dev box:
Your search exceeded 5000 records and will surpass the capabilities of this
connection. Please narrow the search criteria and resubmit.
It's just a thought, not sure if it's going to work.
When could we have the DBA Make this change. The servlet.properties???
23-SEP-04 17:30:55 GMT
REQUESTED INFORMATION PROVIDED
===============================
Hi Darlene,
Thank you for providing the requested information. I am currently reviewing/resea
rching the situation and will update the TAR / call you as soon as I have additi
onal information. Thank you for your patience.
Best regards,
Ajit
STATUS
=======
@WIP -- Work In Progress
23-SEP-04 18:04:31 GMT
UPDATE
=======
Hi Darlene,
We cannot modify the system messages nor do I think there is a method to hide the system message. The message that was coming is
due to the raise srw.program_abort command, which is the element through which
we can abort the program.
Thanks
Best Regards
Ajit
@CUS
23-SEP-04 18:29:26 GMT
New info : Can you please look into a way that we can get something to work?
23-SEP-04 18:49:28 GMT
Hi Darlene,
I am sorry to say that but I don't think there is any any workaround to this because the system message is what is generated by the oracle reports i
nternally. Still if you wish you may refer to the otn discussion forum which is
maintained by teh product management group and post a new thread on it. the link
to the forum is Reports
Also since nothing can be done on our side I don't see any reason to keep this TAR open an
d if you wish we can soft close this.
Thanks
Regards
Ajit.
23-SEP-04 13:13:10 : CHANGES MADE VIA MetaLink
NOT YET FORWARDED TO OUR INTERNAL SYSTEMS :
New info : Shouldn't there always be a way to do something? I don't understand
why we were told in 10G that this could be done and now we are told it can't.

You can tell Thunderbird to remember your password.
''... they took me off their list because they kept receiving error messages when they sent me a message.''
What is the exact error message?

Similar Messages

Maybe you are looking for

  • IOS 8 HOW TO DELETE ALL READING LIST in safari

    iPhone iOS 8 how to delete all reading list from safari

  • Printing multiple spool requests at a time

    Hi All, I am using function module RSPO_OUTPUT_SPOOL_REQUEST to print the contents of the spool request. I want to print multiple spool requests at a time. We can input only one spool request number to the above function module at a time. Is there an

  • E72 - Cant view photos on memory card

    Hey, Any photos or backgrounds I put on my memory card are not viewable in the image gallery and If I move a image from the phone memory to my memory card in the image gallery It just disappears. I tested the memory card in another phone and it works

  • Parameter in Select of DB Adapter

    Hi We implement some services with the osb 10gR3. For my specific service the target is an ms sql database (2005). Over jdeveloper I am defining the connection to the server and with the wizard a select statement. Now to my problem - how can I define

  • Shattered screen

    My son just opened his iPad Air which is in a protective case and the screen is shattered?  He has apple care and it is still under warranty.  Is this covered? If not how much is a replacement screen?