Example is given below to Populate a List Item in Oracle Forms using Create_group_from_query, Populate_list and Populate_ Group command. In this example you can specify the query at run time to populate the list item with that query result. Following is the screen shot for this example You can also download this Oracle Form FMB from Google Drive with the following link LISTITEM.FMB The following are the code written on the ' Populate List with the Above Q Uery "button: DECLARE rg_name VARCHAR2 (+): = ' dyngrp '; rg_id Recordgroup; errcode number; BEGIN * * * * Sure group doesn ' t already exist */ rg_id: = Find_gro Up (Rg_name); /* * * IF It exists then delete it first and then re-create it. * * if not id_null (rg_id) then Delete_group (rg_id); End If; rg_id: = Create_group_from_query (Rg_name,: txtqry); /* * * * * Populate the Record Group */Errcode: = Populate_group (rg_id); Clear_list (' olist '); Populate_list (' olist ', ' dyngrp '); END;
Populate A List Item with the Record Group in Oracle Forms Using populate_list and Create_group_from_query Command