Hey up. I'm quite stuck on this after playing around with it for about five hours. Basically I'm working on a pretty extensive Oracle framework, trying to use 1 procedure to populate a cursor in my procedure.
So I build up a list of IDs within a cursor:
cursor cPages is
-- get a list of matching pages
select pages.page_id
from (....)
That part's no problem. But later I want to loop through the cursor, calling a procedure to populate another cursor. So far I've been trying:
-- get the page information for each page
for vPage in cPages loop
getPage(vPage.page_id, pSitecode, pLang, pAuthLevel, cResults, cLocale);
end loop;
Currently this does work but only returns the last page - obviously must be overwriting the cursor each time.
Could somebody please point out what I'm doing wrong?
Thanks a lot for any help you can give!
Adam