|
|
Re: how to retrieve [message #231143 is a reply to message #231037] |
Sun, 15 April 2007 01:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
sameer_am2002
Messages: 129 Registered: September 2002
|
Senior Member |
|
|
create 1 recordgroup from which you want to populate list item
with where condition of your input item..e.g
Text Item Deptno -- Input Item
List Item Emp -- List Item
so your recordgroup would be
select ename , to_char(empno)
from emp where deptno = :item1 -- this is your input item
then
in the post text item
declare
rg_id recordgroup := find_group('RECORDGROUP1') ;
listid item := find_item('LIST1') ;
begin
if not id_null(rg_id) then
clear_list(listid) ;
if populate_group(rg_id) = 0 then
populate_list(listid , rg_id) ;
end if ;
end if ;
end ;
|
|
|