FIRST CREATE A LIST_ITEM EMPLOYEE_CODE IN THE EMPLOYEE_MASTER BLOCK.TO FILL THE LIST WITH VALUES RUNTIME USE THE FOLLOWING CODE:-
declare
r_dname varchar2(40) := 'divn_rec';
status number;
groupidd recordgroup;
begin
/*First dynamically create a query*/
groupidd := create_group_from_query(R_dname,
'select employee_NAME,employee_code from emp');
/* tHEN POPULATE THE FROUP*/
status := populate_group(groupidd);
clear_list('EMPLOYEE_MASTER.EMPLOYEE_CODE');
/** populates the list with values from record group*/
populate_list('EMPLOYEE_MASTER.EMPLOYEE_CODE',groupidd);
END ;