Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8955665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:36:21+00:00 2026-06-15T14:36:21+00:00

I want to make list which will display values, like text item but in

  • 0

I want to make list which will display values, like text item but in list.

My code:

DECLARE
      rg_dept     RecordGroup;
   
      rg_dname    VARCHAR2(4) := 'Name';
     
      dlist_ID    Item := Find_Item('PROJESCT.LIST_ID');
    
      nDummy      NUMBER;
BEGIN
      rg_dept := Find_Group(rg_dname);
   
     
      -- Delete any existing Group first
      IF NOT Id_Null(rg_dept) THEN
            Delete_Group(rg_dept);
      END IF;
  
      -- Now create a Record Group using a SQL query
      -- Your Query must have a Label and a Value (two Columns)
      -- and the data types must match your item type   
      rg_dept := Create_Group_From_Query(rg_dname,'SELECT department_name, to_char(department_id) FROM departments');
    
 
      --Clear the existing List
      Clear_List(dlist_ID);
   
 
      -- Populate the Record Group
      nDummy := Populate_Group(rg_dept);
      
 
      -- Populate the List Item
      Populate_List(dlist_ID ,rg_dept);
     
END;

If I make list item and add this code, form will display nothing; if I remove list, all is ok.

P.S. Trigger: when-list-item-change

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:36:22+00:00Added an answer on June 15, 2026 at 2:36 pm

    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.

    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;
    

    The When-New-Form-Instance is a form level trigger and should be under the form (instead of block or item):

    Adding of When-New-Form-Instance

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to make an stylized unordered list like the following, but i don't
I have a python list which contains dictionaries and I want to make a
I've a list which has a column 'YEAR'. I want to make the recent
In my application,I want to display some static files(.html,.htm,.txt) which will be uploaded by
i want to use a list which will store objects of some type (lets
I am traversing a HTML document using javascript DOM. I want make a list
I want to make a list of toolbuttons in QT. The toolbuttons should appear
I want to make a long list short by hiding some elements in long
i want to make a dynamic list with buttons on it. My button in
I want to make a search method from a list of Restaurants. The user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.