Frm - 41337 - can not populate the list from record group

Hi
I have created a form with 4 combo boxes. And i am trying to populate the 4 combo boxes dynamically.
Here is my table structure.
BUS_FUNCTION VARCHAR2(500),
SEQ NUMBER,
STEP1 VARCHAR2(500),
STEP2 VARCHAR2(500),
STEP3 VARCHAR2(500),
STEP4 VARCHAR2(500),
KEYSTEP VARCHAR2(4000),
OBJ_NAME VARCHAR2(500),
SME VARCHAR2(50)
In the fist combo box i am retriving bus_function and second seq and third step1.
i wrote a trigger when_new_form_instance and i am calling a procedure from the trigger.
here is my procedure code.
PROCEDURE fp_get_list IS
l_sql_text VARCHAR2(2000);
BEGIN
l_sql_text := 'SELECT bus_function,bus_function FROM TABS_BUS_FUNC';
lp_populate_list('BUSFUNC.list22','rgcat2',l_sql_text);
l_sql_text := 'SELECT TO_CHAR(SEQ),TO_CHAR(SEQ) FROM TABS_BUS_FUNC';
lp_populate_list('BUSFUNC.BUS_FUNC','rgcat',l_sql_text);
l_sql_text := 'SELECT step1,step1 FROM TABS_BUS_FUNC';
lp_populate_list('BUSFUNC.list20','rgcat1',l_sql_text);
END;
Now the problem is i can able to get the values fro the first two colums. but the third column values are not populating.
i am getting an error frm - 41337 - can not populate the list from record group.
PLease help me in this.
Thanks in advance,
Raju

I got answer
i write a code in when-new-form-instance
declare
v_rg_id RECORDGROUP;
v_return number;
v_query varchar2(2000);
outcome number ;
begin
v_rg_id := CREATE_GROUP_FROM_QUERY('RG_LIST','select Dname,To_char(Deptno) deptno from dept');
v_return := POPULATE_GROUP(v_rg_id);
POPULATE_LIST('emp.deptno', 'RG_LIST');
end;
but remember property of list item must be mapping of others value null and initial value null
if ur problem not solve then tel me email, i ll send u fmb file

Similar Messages

  • URGENT,FRM-41337: Cannot populat the list from record group

    Hi all:
    Can anyone help me in that problem?
    I have a database item in the block as a list item with combo box style and I use this code in WHEN-NEW-RECORD-INSTANCE at the form module level to populate that combo box list:
    DECLARE
         group_id RECORDGROUP := FIND_GROUP('group');
         list_id ITEM := FIND_ITEM('employees.job_id');
         x number;
    BEGIN
    IF NOT ID_NULL (group_id) THEN
              DELETE_GROUP (group_id);
         END IF;
              group_id := CREATE_GROUP_FROM_QUERY ('group','select name,TO_CHAR(id) job from cmn_jobs where job_type_id = 4720 ');
         x := POPULATE_GROUP (group_id);
         POPULATE_LIST (list_id, group_id);
         EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
         END;
    That code worked very well and without any problem, but when I change the list item from combo box style to poplist style then the forms give that error:
    FRM-41337: Cannot populat the list from record group
    And an additional null/blanke element appears in the poplist with original element that come from RECORDGROUP.
    So can anyone help me to solve that problem please?

    First, how I can assign a default or initial value DYNAMICALLY to my poplist.Set the default-value to a parameter like :PARAMETER.MYPARAMETER then you can assign the desired default-value to the parameter.
    second, if I have popliste say X for example depend on another poplist say Y ,so when I put the code to populate popliste X on WHEN-LIST-CHANGED on popliste Y and make query then the >forms return FRM-40301 Query caused no records to be retrieved ,but when I have a copy for that code in WHEN-LIST-CHANGED and put it in WHEN-NEW-FORM-INSTANCE at the form >module the form work and returns records, so is it any error or exception in what I did.Can't answer that, you should check :SYSTEM.LAST_QUERY to see why the query does not returnany records.
    At the last, which better to put the code for popliste in PRE-FORM trigger at the form module or in WHEN-NEW-FORM-INSTANCE at the form module.I would use the PRE-FORM-trigger

  • FRM-41337: Cannot populate the list from record group.

    My task is to populate the list after a list changed is triggered in another list item. I have 2 list items, report_type ans subgroup_type. When report type is changed, I have to get the value from it and create a select statement for subgroup_type. Here's what I did in the pre form:
    PROCEDURE INITIALIZE_LIST IS
    BEGIN
    for Preparation status
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_REPORT_TYPE';
    ret_code number;
    -- the following holds select query from which the lst element are d
    -- derived
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''RTV_REPORT_TYPE'' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_report_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and in the s_report_type list change event, here's what I do:
    BEGIN
    DECLARE
    rg_list_id recordgroup;
    rg_name varchar2(20) := 'REC_SUBGROUP_TYPE';
    ret_code number;
    v_select varchar2(300);
    BEGIN
    v_select := 'SELECT description, lookup_code FROM tmx.tmx_lookups '||
                                  'WHERE lookup_type = ''' || :start.s_report_type || ''' AND enabled_flag = ''Y'' '||
    'ORDER by 1';
    rg_list_id := find_group(rg_name);
    if not id_null(rg_list_id) then
    delete_group(rg_list_id);
    end if;
    rg_list_id := create_group_from_query(rg_name, v_select);
    ret_code := populate_group(rg_list_id);
    populate_list('start.s_subgroup_type', rg_name);
    delete_group(rg_list_id);
    END;
    END;
    and the FRM-41337 error is triggered. Please point me out where I missed. Thanks a lot.

    try to change query with this
        'SELECT description, to_char(lookup_code)........and dont delete the group after
    Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • The report can not retrieve the data from the DB

    Dear all,
    I am facing a problem is that i have ready designed reports in Crystal. While refreshing the report in Crystal, it gives an error that it can not retrive the information from the database. But, if i am using the application which the report is attached, it is giving me the results and showing the report in Crystal. Even, for testing if i add a new field, i have to run it from the application, but directly from the Crsytal Reports, it displays an error.
    I hope you will help me in the issue.

    Could you please provide more information:
    What is the database? (Oracle, SQL Server, xml, etc.)
    What type of connectivity? (ODBC, Native, OLE DB, etc)
    Are application and Crystal Reports are running from the same machine?
    What is the error message? Any error numbers?

  • Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    If you just installed iCloud does that mean you updated the iOS that's running on your iPad?  If so, you'll want to restore all the programs you have from the backup you hopefully made.
    Refer to these articles for help.
    iTunes: Backing up, updating, and restoring iOS software.
    If you don't want to use iCloud, simply don't activate it.
    You can also download the programs again.
    If you live in a country that supports re-downloading apps then you can re-download them.  You can refer to this article for more help.
    Downloading past purchases from the App Store and iTunes Store
    What to know if your country supports downloading past purchases?
    iTunes in the Cloud Availability

  • Epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    epub books show up in ipad on itunes but do not show up on ipad. Also can not delete the books from ipad in itunes

    You have no choice but to lose your data back to the last backup you made.
    Here's how to do the recovery.  Note you may have to try to get into recovery mode more than once to succeed:
    HT1808
    I'm sure next time, you'll be more vigilant about keeping current backups.

  • Can not get the agent from rule determination

    Dear expert,
      We have a PR workflow,for one step, the agent is determined by one rule,In our Q system,everythink is ok to get the agent correctly,and the workflow also can works.but in our P system,can not get the agent from the rule,when we simulate the rule,the agent can be get smoothly,but in workflow,realy can't get the agent(after trace the workflow), so would you like to give me sone suggestion, whant had happen in our workflow?
    Many thanks!
    Best Regards,
    Kerry

    Tks!
    I have one question,how to check the agent assignment is active?
    and also want to say,the rule that determin the responsible agent is used at one step of the workflow,not for possible agent of task ,and the rule's type is RESPONSIBILITIES.
    Best Regards
    Edited by: Kerry Wang on Jun 25, 2010 3:14 AM

  • My problem is a sudden loss of ability to get to PSE12 Organizer when I tried to load a saved scan. Had been using the Organizer and the Editor with no problems for several hours just before that.     Can not load the Organizer from the icon at the bottom

    My problem is a sudden loss of ability to get to PSE12 Organizer when I tried to load a saved scan. Had been using the Organizer and the Editor with no problems for several hours just before that.  
    Can not load the Organizer from the icon at the bottom of  Editor screen, from the icon on the MacBook Air dock (OS 10.10.2),  nor from the file in applications located with Finder.
    I have tried without success to access Organizer after turning off and on the scanner, turning off and on the computer, loading a fresh copy of PSE12 from the CD, and restoring default preferences.  I have searched on line for other options but not  found any. 
    Can you help me?

    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod               
    Iphone 5 lightning port charging problem - SOLUTION!
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • I can not delete the $ symbol from template "green grocer" under invoice templates!

    I can not delete the $ symbol from template "green grocer" under invoices, how do I do it, so it will stay deleted and not just keep coming back?

    Select the cells:
    Go to Inspector >Table > Format > Cell Format > Number or whatever you want other than currency.
    The table is actually a spreadsheet.
    Take the time to investigate where all the formatting resides in toolbars, menus and inspectors, most of it is where you would expect to find it.
    Peter

  • I can not install the update from adobe media encoder

    I can not install the update from adobe media encoder for MPeg 2 DVD, it will not install error code U44M2P28

    Would you have any screenshots, filename and the exact URL that you used to download Flash Player. Can you also, please provide your system configuration to help us identify the issue.
    Thanks,
    Anamika
    Adobe Team

  • Firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    firefox 7.0 - Can not upload the file from local machine to server...gives "error 404 : file not found"

    you have not understood my point
    how does this code will run on servlet when I want to upload a file from client's
    machine to server machine
    what I am doing is I am giving an option to the user that he/she can browse the file and then select any file and finally it's action is post in the jsp form for which I have sent the code
    All the computers are connected in LAN
    So how to upload a file from client's machine to server's machine
    Plz give me a solution

  • Can not download the App from App Strore

    I don't know what's going on that I can not download the app from App Store using my iPad2.
    but I can download the app from App Store using my iphone 3S.

    Hey you are not alone. I have exactly the same problem, cannot download to ipad2 but can download to iphone4S. I see a lot of people complaint about this in other discussion threads. Some dated back to January 2012. Apparently Apple has not done anything about it and the problem is spreading to more ipad users now.

  • FRM-41337: Cannot pop list from record group

    If I update a record from a poplist and try to re-populate the list, i get this error. I've read you need to have a default or other values listed, unless it can accept NULL values. Well, it CAN accept NULL values, and required property is set to NO. I'd appreciate your help.

    On-line help says:
    ADD_LIST_ELEMENT restrictions:
    For a base table list with the List Style property set to Poplist or T-list, Form Builder does not allow you to add another values element when the block contains queried or changed records. Doing so causes an error. This situation can occur if you have previously used DELETE_LIST_ELEMENT or CLEAR_LIST to remove the other values element that was specified at design time by the Mapping of Other Values list item property setting.
    Note: The block status is QUERY when a block contains queried records. The block status is CHANGED when a block contains records that have been either inserted or updated.

  • In the topmost Firefox menu with File,Edit,View,History,Bookmarks, I can not get the list of bookmarks to display as they did before. The Bookmarks menu does not open up into the list of bookmarks.

    I am running Mac os 10.6.8 and Firefox 6.0.1 on a MacBook Pro and on a desktop Macintosh.
    The large computer displays a list of bookmarks when you click on the uppermost Bookmarks menu.
    The MacBook Pro displays the following when you click on the Bookmarks word in the top menu:
    "Show all Bookmarks, Bookmark this Page, Bookmark all Tabs and an icon with a blue dot next to Bookmarks Toolbar with an arrow to the right and below that it says Unsorted Bookmarks.
    There is no display of the list of bookmarks from which I can chose as I do on the larger desktop macintosh computer.
    How can I get the list of bookmarks to show as a list when I click the Bookmarks menu?

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    You can also try to move (delete) the Firefox plist file.<br />
    See [http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results]
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).

Maybe you are looking for

  • Storyboard doesn't contain a view controller with identifier 'myViewController'

    I have 3 view controllers on storyboard. One of them has Storyboard Id as 'myViewController'. its runs perfectly on simulator. But when I try to run it on my device it gives following error: 'Storyboard (<UIStoryboard: 0x1cd626d0>) doesn't contain a

  • Random file on macintosh HD in finder

    when i go on the finder and click on macintosh hd under devices, there is a new file that i haven't seen before called, instance.plist i have no idea what it is, but can someone tell me what it is and where it could have came from? should i just dele

  • Lightroom 5 catalog won't open

    I'm trying to open a lightroom catalog from my harddrive from my mac book pro.  Lightroom says it's open but it will not show up, when I right click on the application it says it is not responding.  When the harddrive is not pulled in lightroom will

  • Cropping tool now deletes whole image in Photoshop CS4

    Recently the cropping tool has taken to deleting the whole image, no matter what is cropped.  I've been attempting to trim the edges, something that was working just fine a few months ago (now operating under Snow Leopard, so wouldn't be awfully surp

  • How to add fonts to iWork09 v.4.3 for macbook pro?

    How to add fonts to iWork09 v4.3 for MacBook Pro?


HashFlare