How to populate List Item from the table in a form builder

I want to know how to populate the List Item (pop up menu and combo box) from a table.
Supposing I have a table Customer(cust_id,cust_name)
and now I want to populate it in such a manner that I can update the data back to the database and also access the list on the form.

This is the method i am using to populate a list.
1- First of all you need to create a non-database list item for customer_name.
2-create this procedure
PROCEDURE populate_list_with_query
--Populates the given list item with the specified query.
(p_list_item in VARCHAR2
,p_query in VARCHAR2)
IS
/* Name the record group after the list item (no
block prefix). */
cst_rg_name constant VARCHAR2(30) :=
GET_ITEM_PROPERTY(p_list_item,item_name);
v_rg_id RECORDGROUP;
BEGIN
v_rg_id := FIND_GROUP(cst_rg_name);
IF ID_NULL(v_rg_id) THEN
v_rg_id := CREATE_GROUP_FROM_QUERY(cst_rg_name,p_query);
END IF;
IF POPULATE_GROUP(v_rg_id) = 0 THEN
POPULATE_LIST(p_list_item,v_rg_id);
/* Force display of first list element label
in the list item. */
COPY(GET_LIST_ELEMENT_VALUE(p_list_item,1),p_list_item);
END IF;
END populate_list_with_query;
3- Create When-Create-Record on the block level and write this code
BEGIN
POPULATE_LIST_WITH_QUERY('bk1.customer_name',
'SELECT customer_name, to_char(customer_id) FROM customer');
END;
In this example, the customer name is the (visible) list label and the customer ID is the (actual) list value
i hope this will solve your problem ...

Similar Messages

  • How do you delete items from the reading list?

    How do you delete items from the reading list?

    I'm trying to mark your reply as "solved my problem", but I can't see where to mark it. I tried to mark it in the email that came to me with your answer, but it went to a screen that said NOT FOUND. Help?

  • How do i delete items from the reading list

    how di i delete items from the reading list

    Swipe your finger across the item in the list and a delete button will pop up.

  • HT5429 How do I remove items from the "current location/to" list?

    In MAPS, how do I remove items from the "current location/to" list?

    Hit the book icon and you will see delete all option. I have not found a way to delete them one at a time.

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to delete a column from the table control in module pool?

    Hi,
      can any one please tell How to delete a column from the table control in module pool?
    thanks in advance
    warm regards
    HareeshKumar N

    hi hareesh,
    I think it is better to hide it.
    How to hide: You can check this link
    Dynamic Hide column in table control

  • How do I remove items from the cloud without losing them permanently?

    My icloud storage is almost full. How do I remove items from the cloud and not lose them?

    What items?
    Purchased music, movies, TV shows, apps, and books do not use up your iCloud storage.
    See the link below for how to reduce the amount of storage you're using:
    http://support.apple.com/kb/HT4847

  • How do you remove items from the assets panel that are duplicated?

    How do you remove items from the assets panel that are duplicated?

    If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
    It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear.

  • How do you remove items from the start up disc

    How do you remove items from the start up disc?

    Freeing Up Space on The Hard Drive
    You can remove data from your Home folder except for the /Home/Library/ folder.
    Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
    Also see Freeing space on your Mac OS X startup disk.

  • How do I remove items from the dock?

    How do I remove items from the dock ?

    Single click and then drag it to the desktop. It will dissapear in a puff of smoke. You also may benefit by bookmarking and using:
    Find Out How Video tutorials

  • How can I remove items from the open a recent file menue.

    How can I remove items from the "Open a Recent File" menue. Many other applications allow the clearing of that file . Is this possible in Adobe Reader 10.1.2 ? If so how?

    See this previous topic: http://forums.adobe.com/message/3759596
    It is for Acrobat, but the registry entries are similar for Reader.

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, save as, etc. but no option to delete.

    In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, saveas, etc. but no option to delete. Thank you.

    Hello.
    I have no idea and you should contact Microsoft for support. This is Firefox's support forum.
    Thank you for your understanding.

  • Goto: How to export some data from the tables of an owner with integrity?

    Hi to all,
    Help please: How to export some data from the tables of an owner with integrity?
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • How do you return items from the trash can to their original locationn

    how do you return items from the trash can to their original location

    Welcome to the Apple Support Communities
    To restore a file on the Trash to its original location, open Trash, right-click the file or press it with Command key, and select Put Back

Maybe you are looking for

  • Error 1334 (in LabVIEW Run-Time Engine 7.1.1 setup) when launching VB6's IDE

    What's going on here?  I have LabVIEW 7.0 and Visual Basic 6 installed on this Win-XP computer.  When I open VB6, I always get what looks like a Windows Installer error: First, it asked me for the location of "lvruntimeeng.msi", which I located for i

  • How do I disable Hyperthreading in 10.6.7 on my 2011 MacBook pro 2.2ghz quad?

    I'm rendering a scene using Maya 2011, and it's only using two of the four cores in the batch render. I've read that Maya doesn't play well with Intel's Hyperthreading, so I want to turn it off while rendering. There isn't any processor preference pa

  • How do I uninstall the last itunes update on my new mac?

    Ever since I downloaded the update for itunes it will not let me sync any music onto my classic ipod at all. Stupidly I restored it to maybe sync it and now i just have no music, how do i uninstall this update to have the itunes before on my new mac?

  • How to call custom themes for Web Dynpro ABAP Application?

    Hi, I need to change the appearance of Web Dynpro ABAP application. So far I followed below steps, 1.     Created theme folder u2018testngou2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> u2018testngou2019 ). 2.     used program BS

  • Saving a template

    I would like to be able to write an e-mail and save it as a template. I tried "save as" in the "file" menu but it's not selectable for some reason. Does anyone know how to make a template to I don't have to re-write or copy and paste from a pages doc