Home » SQL & PL/SQL » SQL & PL/SQL » How do i populate a LOV with values from a cursor?
How do i populate a LOV with values from a cursor? [message #662] Tue, 26 February 2002 03:32 Go to next message
Greg Horton
Messages: 37
Registered: February 2002
Member
I want to populate a cursor with the results from the following statement:

select table_name from user_tables;

..and then populate a LOV with the respective values.

Could anyone please tell me what kind of cursor i would need to use and where abouts in the form it should go - ie. pre-block, pre-popupmenu??

Thanks,

Greg
Re: How do i populate a LOV with values from a cursor? [message #664 is a reply to message #662] Tue, 26 February 2002 03:43 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
lov is populated from record_group , not from cursor
Re: How do i populate a LOV with values from a cursor? [message #666 is a reply to message #662] Tue, 26 February 2002 04:08 Go to previous messageGo to next message
Greg Horton
Messages: 37
Registered: February 2002
Member
If i were to use the commands

select table_name from user_tables

and

select column_name from user_tab_columns
where table_name=:first_list.selected_value

..is it possible to redirect the results into a list item? Would i have to use a trigger?
Re: How do i populate a LOV with values from a cursor? [message #668 is a reply to message #662] Tue, 26 February 2002 04:36 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
1. create a record group from above query
2. use populate_list built in to populate the list from the record group.
Re: Error with code? [message #684 is a reply to message #662] Tue, 26 February 2002 07:27 Go to previous message
Greg Horton
Messages: 37
Registered: February 2002
Member
You are amazing!! Ive got it working now - thankyou :-)
Previous Topic: Error with code?
Next Topic: Re: How do i populate a LOV with values from a cursor?
Goto Forum:
  


Current Time: Wed Apr 24 01:30:41 CDT 2024