dbTalk Databases Forums  

Calling stored procedure in Forms

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Calling stored procedure in Forms in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Johan Verlinden
 
Posts: n/a

Default Calling stored procedure in Forms - 02-05-2004 , 08:00 AM






We are using Forms6i with a Orcake8i database.
We call a stored procedure from within our trigger code. Can anyone tell me
how I have to handle possible exceptions happening in the procedure on the
server side. Can we catch exceptions occuring on the server in our trigger
code?



Reply With Quote
  #2  
Old   
Mark C. Stock
 
Posts: n/a

Default Re: Calling stored procedure in Forms - 02-05-2004 , 08:23 AM







"Johan Verlinden" <johan.verlinden (AT) iris (DOT) be> wrote

Quote:
We are using Forms6i with a Orcake8i database.
We call a stored procedure from within our trigger code. Can anyone tell
me
how I have to handle possible exceptions happening in the procedure on the
server side. Can we catch exceptions occuring on the server in our trigger
code?


any exception not handled by any PL/SQL block (ie, the stored procedure) is
propagated to the calling environment (ie, Forms 6i) and can be handled with
standard PL/SQL exception handling

so, this should be a piece of 'Orcake' ;-)

-- mcs




Reply With Quote
  #3  
Old   
Ahmed Baraka
 
Posts: n/a

Default Re: Calling stored procedure in Forms - 02-11-2004 , 03:01 AM



To raise an exception in stored procedure use the following command:
RAISE_APPLICATION_ERROR('error_message',<error_num >)
error_num range between -20000 and 20999

In forms, you catch the raised error number using DBMS_ERROR_CODE
and DBMS_ERROR_TEXT.


"Johan Verlinden" <johan.verlinden (AT) iris (DOT) be> wrote

Quote:
We are using Forms6i with a Orcake8i database.
We call a stored procedure from within our trigger code. Can anyone tell
me
how I have to handle possible exceptions happening in the procedure on the
server side. Can we catch exceptions occuring on the server in our trigger
code?





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.