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

Similar Messages

  • 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/]

  • 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

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

  • TS1424 i have a wish list that i would like to purchase i have also download itunes gift card i can see the 25 dollars but i cannot purchase the music from my wishlist

    I have made a wish list and I am unable to complete the purchase, I have a $25 gift card from itunes that was downloaded when I open the account it shows the 25 but I cannot purchase the music from my wishlist can someone help me with this issue. 
    Thank You Cynthia62

    Just locate the itunes folder on your laptop, then locate media files then music and just click and drag to move the music from the laptop to the S5. Just be sure to move the music to the music folder on your phone and you're good to go. You don't even have to change the file format when you're moving the music over because Galaxy supports the iTunes media files.

  • Urgent! FRM-10270 Cannot attach the library

    I get the error message "FRM: 10270 Cannot attach the library SYSLIB while opening menu BMENU" but only when i try to open a second form while the first form is still running.
    Both forms are working fine as long as they are not running at the same time.
    It seems like the second form opening does not have access to the FORMS60_PATH.
    All the forms and libraries (plx) are in the FORMS60_PATH.
    I am running developer_6i forms & reports on a HPUX 11i with patch 11 and I am trying to access them through jinitiator 1.3.1.9 on a XP machine.
    I would apprecate if anybody have any ideas about this error.
    BR/Marcus

    Thanks a lot for the tip. I used truss and realised that it found the library but was not allowed to open it. The kernel parameter maxfiles was set to low.
    I increased it and everything works ok
    BR
    Marcus

  • Error message:FRM-12001: Cannot Create the record group(check your query)

    Requirement: Need to get employee name and number in the LOV in search criteria.
    So I created LOV "full_name" and Record group Query under Employee Name property palette with
    select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
    ,papf.employee_number
    from apps.per_all_people_f papf, apps.per_person_types ppt
    where sysdate between papf.effective_start_date and papf.effective_end_date AND papf.person_type_id=ppt.person_type_id AND ppt.system_person_type IN ('EMP', 'OTHER', 'CWK','EMP_APL')
    AND PPT.default_flag='Y' and papf.BUSINESS_GROUP_ID=1
    order by papf.full_name
    I was unable to save and getting error message "FRM-12001: Cannot Create the record group(check your query)".
    I cant use PER_ALL_PEOPLE_F.FULL_NAME since full name here is last_name||title||middle_names||firstname.
    But my requiremnet is papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name .
    Can any one of you help me.

    First, Magoo wrote:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name ( p_title in varchar2,
    p_last_name in varchar2,
    p_first_name in varchar2,
    p_mid_names in varchar2 ) return varchar2 is
    begin
    for l_rec in ( select decode ( p_title, null, null, p_title || ' ' ) ||
    p_last_name || ', ' || p_first_name ||
    decode ( p_mid_names, null, null, ' ' || p_mid_names ) full_name
    from dual ) loop
    return ( l_rec.full_name );
    end loop;
    end;</font></pre>
    Magoo, you don't ever need to use Select from Dual. And the loop is completely unnecessary, since Dual always returns only one record. This would be much simpler:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name
    ( p_title in varchar2,
    p_last_name in varchar2,
    p_first_name in varchar2,
    p_mid_names in varchar2 ) return varchar2 is
    begin
    Return ( Ltrim( Rtrim ( p_title
    ||' ' ||p_last_name
    ||', '||p_first_name
    ||' ' ||p_middle_names )));
    end;</font></pre>
    And second:
    user606106, you did not mention how you got your record group working. However, you DO have an issue with spaces. If you change this:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
    ,papf.employee_number </font></pre>
    to this:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select Ltrim(Rtrim(papf.title||' '||papf.last_name||', '
    ||papf.first_name||' '||papf.middle_names)) AS emp_full_name,
    papf.employee_number</font></pre>
    it should work. The Ltrim(Rtrim()) removes leading and trailing spaces from the resulting full name.

  • FRM-47001: Cannot create parameter list aamir : list with this name exists.

    Sir I use parameter list in my form whose name aamir first time when I call report system give result right but second time I call report then system give this error
    FRM-47001: Cannot create parameter list aamir : list with this name exists.
    Please give me idea how I get print view second time
    Thank
    aamir

    Hello aamir,
    Use the following to delete existing parameter.
    DECLARE pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tempdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_id);
    END IF;
    END;
    Cheers,
    Suresh

  • HT1296 I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    You copy them from your old computer or your backup copy of your old computer.
    The iphone is not a backup/storage device.

  • HT1386 I have the iphone 5s. I cannot get the playlists from my computer to sync to iphone it will work for my 4s but not my 5s why?

    Hello can someine help before i throw this 5s in the trash please?
    I have the iphone 5s. I cannot get the playlists from my computer to sync to iphone5s but it works just fine with my 4s. I have done everything, it has even deleted my playlists that I have had to re-do 3 times. UGH!!!! Please help!

    Hey there rmflint,
    It sounds like you are wanting to update the Apps that were synced over from your computer to your new iPhone 5s. If you are clicking Updates in the App Store in the bottom right corner, would you mind clarifying what happens when you are trying to update them? 
    App Store at a glance
    http://help.apple.com/iphone/7/#/iph3dfd8c19
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • HT4847 I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accoun

    I have a new iphone and cannot delete the backup from icloud.  It says that it is in use.  I have read some of the other threads and it only seems to be haphazard solutions. Is there a definite way to fix this? I am not able to change icloud accounts.

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • TS3367 I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling m

    I have two IPhones and one IPad all with the same Apple ID. I can call facetime between the two IPhones, but I cannot call the IPAD from either of the IPhones and when I call my IPhone from the IPad it rings my wife's IPhone after briefly calling mine.

    Each device needs a separate address. Use an email address (gmail.com) on the iPad.
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • I have a 2004 30gb ipod colour.....it was previously set up so i could manage the music on an old mac book pro g4.....i now have a new mac book pro, but i cannot get the music from my old ipod on to my mac......how do i do this???

    i have a 2004 30gb ipod colour.....it was previously set up so i could manage the music on an old mac book pro g4.....i now have a new mac book pro, but i cannot get the music from my old ipod on to my mac......how do i do this???

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your Mac and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    Once you have successfully done that you can go ahead and choose Erase and Sync when you plug your iPod in.
    B-rock

  • Cannot move the pages from one document to another

    Hi,
    I cannot move the pages from one document to another, abobe gets crashed. I am not sure but I think this was happening when I try to copy or move the threaded content. How to resolve this, this is happening in both CS4 and CS5. Can anyone help me?

    Thanks for ur reply.
    1. Open two documents, for ex doc1 and doc2, doc1 contais 4 pages, doc2 contains 2 pages
    2. Using Move Pages from the Pages panel menu in doc1, moving 1st two pages to doc2
    Move Pages  : 1-2
    Destination   : After page 1
    Move to        : doc2
    Actually I was not able to copy the textframe which is linked with another, immediately it crashes.

  • I don't know why cannot purchase the Apps from my ID

    I don't know why cannot purchase the Apps from my ID
    <Email Edited By Host>

    It's difficult offer further advice when all you say is "can't". If you provide full details as ot the problem, inlcuding any error messages you may be getting, someone may be able to offer additional suggestions.
    Regards.

Maybe you are looking for

  • How can i get an mpeg-1 movie to play using QuickTime?

    I just bought the MPEG-2 extension for Quicktime because I had a movie with a .mpg extension only to find that it's mpeg-1, not 2. MPEG Streamclip does not work either. In both cases I get the control window and when I hit the play button, the marker

  • Pdf form crashes browser

    i created a pdf form in adobe live cycle designer and when i  click the link to the pdf on my website, the browser crashes. I then have to ctrl+alt+delete to end task and then a window pops up saying "xml parsing error: unclosed token (error code 5),

  • [FIXED]Can't install any packages after Syu

    So I did my first ever pacman -Syu today and I'm having severe pacman issues now.  At the bootup screen, it will complain about how it is unable to mount the pacman database.  Whenever I try to install a new package, I get hundreds of lines worth of

  • CodeBehind AS Files in Library Project Error 1114

    Hello all, ich already did a search, found people with similar problems but no concrete solution. The Problem: In FlashBuilder 4 when creating a new LibraryProject I can't put actionscript code (pure code, no class definition, no package)  in seperat

  • I'm trying to update my iPad 2 but an error keeps popping up after the extracting part...

    im trying to update it to OS 5.0.1 or whatever, and it gets through everything until the extracting part and an error pops up. i have the most recent iTunes, i temporarily disabled the antivirus and firewall, and i reset my whole ipad... what now!


HashFlare