Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I should recommend you to populate your lists from e.g. When-new-Form-Instance. As usual you will get a good idea what you need to do from Forms help (menu 'Help/Online Help'). This is a procedure I have made to simple populate list only by specifying the name of the list item and the select statement to populate the lsit item with.</p> <pre><code>PROCEDURE populate_list_item ( p_item_name VARCHAR2 , p_select VARCHAR2 ) IS l_rg_id RECORDGROUP; l_list_id ITEM; l_err_num PLS_INTEGER; FUNCTION create_temp_group ( p_select VARCHAR2 ) RETURN RECORDGROUP IS l_rg_id RECORDGROUP; l_group_name VARCHAR2(30) := 'TMP$RG'; BEGIN l_rg_id := FIND_GROUP(l_group_name); --Make sure that record group don't alreay exist IF NOT ID_NULL(l_rg_id) THEN DELETE_GROUP(l_rg_id); END IF; --Populate the temporary record group l_rg_id := CREATE_GROUP_FROM_QUERY(l_group_name, p_select); RETURN l_rg_id; END create_temp_group; BEGIN l_rg_id := create_temp_group(p_select); l_err_num := Populate_Group(l_rg_id); --Allow for no data found in the selection query IF l_err_num NOT IN (0, 1403) THEN RAISE Form_Trigger_Failure; END IF; l_list_id := Find_Item(p_item_name); IF ID_NULL(l_list_id) THEN RAISE Form_Trigger_Failure; END IF; Populate_List(l_list_id, l_rg_id); Delete_Group(l_rg_id); END populate_list_item; </code></pre> <p>The When-New-Form-Instance is a form level trigger and should be under the form (instead of block or item):</p> <p><img src="https://i.stack.imgur.com/QSbpb.jpg" alt="Adding of When-New-Form-Instance"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload