Home » Developer & Programmer » Reports & Discoverer » how to use a ref cursor in report 6i
how to use a ref cursor in report 6i [message #90177] Sun, 28 November 2004 02:49 Go to next message
Rohit Pal
Messages: 1
Registered: November 2004
Junior Member
hi all

anybody can tell me with an example how to use ref cursor in report 6i.

Rohit Pal
Re: how to use a ref cursor in report 6i [message #141310 is a reply to message #90177] Sat, 08 October 2005 08:10 Go to previous message
me39che14
Messages: 3
Registered: May 2005
Location: Iran
Junior Member
for example create this package :
PACKAGE concl_cv IS
type conclass_rec is RECORD
(ccap number,
classid number,
gwl number,
twl number,
htf number,
hti number,
notes varchar(50),
teu number);
type conclass_refcur is REF CURSOR return conclass_rec;
END;

and then you can use this :
function q_containerRefCurDS return cont_cv.container_refcur is
temp_container cont_cv.container_refcur;
begin
open temp_container for select cl.title, c.DOCKLOC,
c.PORTID, c.REPNO,
c.STATUS, c.key,
cl.key key2, c.classid classid2
from CONTAINERS c, conlabel cl
where cl.key=c.key
order by c.REPNO;
return temp_container;
end;
Previous Topic: Report errors
Next Topic: Big Report paging problem
Goto Forum:
  


Current Time: Fri Jun 28 01:54:37 CDT 2024