Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Cursor Loop Problem

ngacDec 10 2008 — edited Dec 12 2008
Hi i currently have in place a cursor to loop and populate things in my form.

like so (sql not important at min)

CURSOR PopulateWithData IS
select * from tables;
BEGIN
OPEN PopulateWithData;
FETCH PopulateWithData INTO vName, vDate, nNetValue, nGrossValue;
while (PopulateWithData%FOUND) LOOP

What i want to do though is allow user to changee sql for cursor so i want this cursor to work from a column in a database

any idea how i can acheive this?

i created a funtion to hold sql and then tried
CURSOR PopulateGraphWithData IS
fun_get_code(1);

but this doesnt work as it expects a select statement.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2009
Added on Dec 10 2008
13 comments
3,791 views