Home » Developer & Programmer » Forms » oracle froms
oracle froms [message #85633] Wed, 14 July 2004 21:08 Go to next message
kal
Messages: 2
Registered: January 2002
Junior Member
hi there,

i need a help, can anybody tell me how to execute a database procedure or functions from the forms.

thanks in advance.

I try to use the execute command but it is doesnot work and in my form user selects the particular procedure and execute which will create a view or function at the backend.

jain
Re: oracle froms [message #85634 is a reply to message #85633] Wed, 14 July 2004 21:16 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
Simply call the Procedure from your form with required parameters.

For e.g if you have a Procedure as follows:
Create or replace Procedure Proc1(A Number) is
Var1 Number(10);
Begin
..............
............
Exception
.........
End;

Then if you want to call this procedure from say Ke-commit trigger of your form simple write
Begin
X number(10):=5;
<Schemaname>.Proc1(X);
End;

HTH
Regards
Himanshu
Re: oracle froms [message #85655 is a reply to message #85634] Fri, 16 July 2004 12:28 Go to previous messageGo to next message
ORCL_NEWBIE
Messages: 5
Registered: October 2002
Junior Member
Bhaiji e na chalbe
Goli
Re: oracle froms [message #85656 is a reply to message #85634] Fri, 16 July 2004 12:50 Go to previous messageGo to next message
Pp
Messages: 6
Registered: January 2004
Junior Member
write->

Schema_name.Procedure_Name(Paramater);

And Have Fun
Re: oracle froms [message #85676 is a reply to message #85655] Tue, 20 July 2004 03:17 Go to previous messageGo to next message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Dear PP,
What do mean by this.
Can you clarify why do you think this won't work?

Regards
Himanshu
Re: oracle froms [message #85679 is a reply to message #85676] Tue, 20 July 2004 11:59 Go to previous message
Pp
Messages: 6
Registered: January 2004
Junior Member
----- Your Code is Here ---------------
Begin
X number(10):=5;
.Proc1(X);
End;

Bhai ji Now tell me ye chalega nahi to daudega??????
Previous Topic: Java Code on Forms 6i
Next Topic: Multi line Button caption
Goto Forum:
  


Current Time: Wed May 15 14:54:28 CDT 2024