Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identify that your function was called from a form

Status
Not open for further replies.

kuhlkmk

Programmer
Apr 5, 2004
13
US
Hello - we have a function written in pl/sql. This function will either be called by another pl/sql procedure, or it may be called by an oracle form (6i). Is there anyway, while I am in the function, to tell who/what is calling it? We'd like the error handling to perform differently if it was called from a form vs another procedure. If not - we'll handle it inside the form. I was just wondering if there might be another approach. Thanks!
 
You might try adding an argument to the function. Then the calling routine can supply a value (e.g., 'FORM' or 'PROCEDURE'). The function can reference the value of the argument to govern its behavior.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top