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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling a stored procedure

Status
Not open for further replies.

Christi

Programmer
Dec 28, 2001
14
0
0
US
I created a stored procedure called gt_names for my forms.
the stored procedure has 3 in parameters and
4 out parameters.
example create or replace gt_names(p_code1 in t.code1%type,
p_code2 in b.id1%type,
p_code3 in g.no%type,
p_name1 out t.name%type,
p_desc out t.desc%type,
p_lname out t.lname%type,
p_reg out t.regist%type)

My question is, how do I call this procedure with trigger in forms 6i.
Is it possible to give me a sample code?
The intent is to populate these fields if certain conditions are true.
thanks in advance
 
I have no sample code but the way you may call your procedure is quite straightfull: just pass explicitly declared pl/sql variables or items (via :block.item). As usually you can not pass a literal for output parameter. After successfull (I hope) call your variable will hold the value assigned within stored procedure.
This is the main strength of Forms to use the same language as Oracle database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top