Urgent, How to Populate List?

I'm developing an application using Developer 2000 and I'm using a menu to call other forms within the application.
My problem is that I have a Main-Form with a foreign-key from another table (e.g. CITY_ID is the foreign key and the DESCRIPTION is in the TABLE CITIES).
In the main-form, I have no problem retreiving the CITIES from the other table, but when I call within the application the form with the CITIES and insert a new row, going back to the main form the new record is not shown.
In the main-form I'm using the WHEN-NEW-FORM-INSTANCE trigger with the Set_Up_List(CITY_ID, 'RG_CITIES') and EXECUTE_QUERY statements.
I've tried to use Populate_List but I get FRM error-messages.
Can anyone HELP ME?

Hello,
Friend, It will be better if you write your code to populate list and error messages here, then and then I can guide you.
Adinath Kamode

Similar Messages

  • How to populate list component via xml file?

    There is a TextArea component that should show the name and
    the description of the item selected in the list component. But I
    dont know how to populate list with external XML and what should be
    the coding in flash as well as what should be written in the XML.
    Please help.

    Here's an xml file listing a couple of brother comedy teams:
    <?xml version="1.0" encoding="UTF-8"?>
    <team>
    <brothers>
    <Marx>
    <name>Groucho</name>
    <name>Chico</name>
    <name>Harpo</name>
    <name>Zeppo</name>
    <name>Gummo</name>
    </Marx>
    <Howard>
    <name>Moe</name>
    <name>Curly</name>
    <name>Shemp</name>
    </Howard>
    </brothers>
    </team>
    Open a new .fla and save it in the same folder as the .xml
    file. Place a List Component on the Stage and name it (in this
    case, "comicTeams_list"). In the first frame write the following
    ActionScript:
    //create XML object and load external xml file
    var broList:XML = new XML();
    broList.ignoreWhite = true;
    broList.onLoad = processList; // this is a function that will
    be written below
    broList.load("populateList.xml");
    function processList(success:Boolean):Void{
    if(success){
    loadList();
    }else{
    trace("Load failure");
    function loadList():Void{
    var broName:String;
    var listEntries =
    broList.firstChild.childNodes[0].childNodes[0].childNodes.length;
    for(var i:Number = 0;i<listEntries;i++){
    broName =
    broList.firstChild.childNodes[0].childNodes[0].childNodes
    .childNodes[0].nodeValue;
    trace(broName);
    comicTeams_list.addItem(broName);
    //to make something happen when you click on a name in the
    List, create a Listener and function
    var broListListener:Object = new Object();
    broListListener.change = someAction; //"someAction" is a
    function to be written shortly
    //add the Listener to the List
    comicTeams_list.addEventListener("change", broListListener);
    function someAction(evtObj:Object):Void{
    var pickedBrother:String = evtObj.target.selectedItem.label;
    //write actions here, referencing pickedBrother variable
    The names of the Marx Brothers will appear in the box.
    This is written in AS2. When you post a question, it's a good
    idea include which version of ActionScript you're using.

  • How to populate list box in module pool program

    How to populate list box in module pool program.
    Please give me reply as soon as posible
    regards,
    Venu.

    hi,
    go thrugh the folling code .
    TABLES sdyn_conn.
    DATA   ok_code TYPE sy-ucomm.
    Global data
    TYPES: BEGIN OF type_carrid,
             carrid type spfli-carrid,
             carrname type scarr-carrname,
           END OF type_carrid.
    DATA itab_carrid TYPE STANDARD TABLE OF type_carrid.
    *& Processing Blocks called by the Runtime Environment                 *
    Event Block START-OF-SELECTION
    START-OF-SELECTION.
      CALL SCREEN 100.
    Dialog Module PBO
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    Dialog Modules PAI
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'SELECTED'.
          MESSAGE i888(sabapdocu) WITH sdyn_conn-carrid.
      ENDCASE.
    ENDMODULE.
    Dialog Module POV
    MODULE create_dropdown_box INPUT.
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMODULE.
    the following code should be included in flow logic of screen
    process on value-request.
      field scarr-carrname  module create_dropdown_box.
    in module pool select list box.
    hope it is useful.
    regards,
    sreelakshmi.

  • 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 ...

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

  • How to populate list of values on screen load

    Hi all,
    I have a list of values based on another field (ANOTHER_FIELD).
    e.g.
    select value d, value r
    from table_name
    where id = :ANOTHER_FIELD;
    ANOTHER_FIELD has default value.
    But when the screen is opened the list of values doesn't get the default value and the list of values is empty.
    Just when submmiting the form, the list of values is populated.
    Please tell me how can I populate the list of values on screen load.
    Thanks!

    Hi,
    So, you have created a computation for ANOTHER_FIELD but the related list still does not get any values? And, the default value for ANOTHER_FIELD is a valid value that can be used to populate the related list?
    Have you set anything for the "Display Null" settings for the related list? Or, is the default value a value will always be in the list?
    Andy

  • How to populate Lists ?

    I have the following table ADRESSES :
    Create table adresses(
    code varchar2(3) NOT NULL,
    type char(1),
    nom1 ...,
    adresse ...,
    cp ...,
    localite ...,
    primary key (code));
    I want to poulate my list with all the code from the ADRESSES table.
    So, I have created a Record Group 'GROUPE_CODE' with the following SQL statement :
    "select code, code value_code from adresses
    order by code"
    Then I have created the procedure for the update of my List.
    PROCEDURE MAJListeCode IS
    groupeID RecordGroup := Find_Group('GROUPE_CODE');
    listeID Item := Find_Item('Liste_code');
    BEGIN
    IF Populate_Group(groupeID) <> 0 THEN
    MESSAGE ('Impossible de remplir dynamiquement la liste');
    RAISE Form_Trigger_Failure;
    END IF;
    Clear_List(ListeID);
    Populate_List(listeID,groupeID);
    END;
    And finally, I call this procedure in a WHEN NEW FORM INSTANCE trigger.
    But it still doesn't work, I have a FRM-41337 error .. saynig "Cannot Populate the list from group record"
    Could someone help me ?
    Tx in advance,
    Xav.
    null

    Currently using Forms version 6.0.8.21.3 with PL/SQL version 8.0.6.3.0. Is this concoction of products able to populate a list item based on a query based on a table function? I am trying to use the Forms built-in create_group_from_query, with below select-statement, which works fine on SQL Plus (8.0.6.0.0):
    select to_char(pdt_id), sdesc
    from table(get_priceplan_type(2, 47, 1, sysdate))
    In Forms it does not work. An FRM-30351 (No list elements defined for list item) is shown, yet the form is generated "successfully". Any help is much appreciated.
    Kind regards,
    -victorbax-

  • How to populate list item depending another

    hello all,
    Am newbie to using Oracle forms 6i i have 3 list items namely CITY_NAME, STATE_NAME ,COUNTRY_NAME and i want to display city_name depending on state_name and display state_name depending on country_name... help me

    Hi
    Pls Study , try & Test the following...
    http://andreas.weiden.orcl.over-blog.de/article-28957008.html
    Hope this helps...
    Regards,
    Abdetu...

  • Urgent: How to Populate SETUP table in LO for perticular period

    Hi Expert,
    I want to populate SETUP tables for perticuler period. Which one is the selection field.

    Hi,
    You can not add new selection fields to the selection screen for filling up the set up tables. The fields available for selection actually depends on the application you are referring to.
    If you see in the below transactions for filling up of set up tables for different applications, you will see that a certain date field is available for selection for some of them. Please refer below. You can also check it directly in the system using the transaction.
    Tcode: Application number: Date filed available
    OLI1BW: Application 03(material movements): Posting Date
    OLI3BW: Application 02: Document date
    OLI4BW: Application 04: Created on date
    OLI7BW: Application 11: No date selection possible
    OLI8BW: Application 12: No date selection possible
    OLI9BW: Application 13: No date selection possible
    Hope this helps,
    Regards,
    Shilpa

  • How to populate list of materials in IM level Physical Inventory document?

    Hi,
    Suppose we have maintained 1000 materials in storage location ABCD. Now when I undertake physical inventory process at IM level, I have to create physical inventory document for this storage location ABCD and I will have to input all these 1000 materials manually for count process in the document.
    Is there any other way whereby if I select the storage location, all the materials which are maintained in this location will get automatically populated in the physical inventory document.
    Thanks in advance,
    Sanjog

    Hello,
    SAP provides standard transaction MI31 to create Physical inventory documents. In the selection screen, you may enter your storage location to include all materials of that location.
    Thanks,
    Venu

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • How to Populate table using values from a muti-select list

    I have a muti-select list in a page, the user can select some of the values from the muti-select list. How to populate a table in a process using the selected values.
    Thanks.
    XP

    XP,
    you can also have a look at the following thread.
    Re: Shuttle Control In APEX 3
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How to populate Java Beans List from the DB ?

    Hi,
    I have three tables called State,District and College.
    Assume, State table has fields statid,statename,statedescr
    District table has fields districtId,districtname,districtdescr and stateid
    College table has fields collegeid,collegename,collegedescr and districtid
    and all ids for the respective tables are primary keys .. and District and College tables have foriegn keys as expected...
    I want to send the whole information to the front end... I had designed three beans StateBean,DistrictBean and CollegeBean.. where all the three beans will have the related fiields and respective getter and setter methods like below
    StateBean -- stateid,stateName,stateDesc and DistrictBeanList
    DistrictBean -- districtid,districtName,districtDesc and CollegeBeanList
    CollegeBean -- collegeid,collegeName,collegeDesc
    I would like to have the JDBC code (any driver,any DB) so that I need to build one StateBeanList (collection of all the statebeans information) ... (like how to write the query to get the whole information from the DB and populate the same into one list..(Query or queries + resultset operation)
    I hope you understand my problem ...
    Please let me know if I have to be more clear...
    Thanks in Advance,
    Vidhya...

    Thanks Sachin,
    Atleast you understand something of my requirement..
    But Actually I want the logic like
    if the query is like
    select * from State
    while(rs.next) {
    StateBean object = new StateBean(); // StateBean
    object.yourcorrespondingsetter(rs.getString(1));
    object.yourcorrespondingsetter(rs.getString(2));
    object.yourcorrespondingsetter(rs.getString(3));
    object.setDistrictBeanList(districtbeanlistalreadypopulated); // how to populate the list of districtBeans list before ....
    listobject.add(object ); // object internally has to have districtBean list, so the district bean list has to be loaded with all the distrct Beans in which every DistrictBean will be loaded with list of CollegeBeans ... Which district belongs to which state and which college belongs which district is all there in the table information ...
    Now I want the query or queries to do that .... Can someone help me ?
    Please let me know if I have to be more clear...
    }

Maybe you are looking for

  • Why won't my iPhone charge?

    This has been a problem for the past day or two... I was facetiming someone and when I put it on charge it would charge and a few minutes later it won't. Before I went bed, it took well over 8 hours or so for it to charge, normally it takes like two.

  • HT201412 Is it possible to restore an ipad that has gotten wet and will not turn on?

    The airlines someone filled my bag full of water. Now they want me to send my device in to make sure it could not be repaird. Will apple even look at this further once they see its waterloged?

  • Video goes green in all Windows 8.1 apps

    When  I try to run a vídeo, it displays a green screen inside the player - it can be on IE (modern and desktop) Netflix app, or any app from the Windows Store with a player. When I try to open the same links (in case of browser) on Chrome, the vídeo

  • Adobe Interactive Forms & CRM2007

    Hi guys, we have to integrate CRM2007 and adobe interactive forms. Let's say when clicking a button in a CRM view it launch the adobe interactive form and then, if it gets changed, it should update some fields in CRM. we have looked at some post but

  • IBGP Route Path Defining to EBGP

    Hi All, I have a two different ISP s configured BGP with Core Router. I have to set path for some ibgp sessons goes through isp1 and remainig ibgp sessions goes through  isp2 and If one isp down means another isp have to take over all ibgp sessions.