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.
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 - 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,
RajuI 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 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: Issues with list item
Hi Everyone,
I have created list item, and populated elements dynamically in when-new-form-instance using below code
DECLARE
l_action_rg recordgroup;
l_action_id item
:= FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
CREATE_GROUP_FROM_QUERY
('Action_Type_Text_lov',
'select flv.meaning Action_Type_Text_lov, to_char(flv.lookup_code) Action_Type_Text_lov from fnd_lookup_values flv where flv.lookup_type= ''XXSCP_GBL_ACTION_TYPE'' AND flv.LANGUAGE = USERENV (''LANG'') '
l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');
POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;My form opening with below error "FRM-41337: Cannot populate list from record group " and showing no records.
I have read the related threads and tried implimenting the tips. But didnt help me..
Please suggest me if i miss anything.
Thanks
PavanHi pavan
Let's test the query on toad...
or
i suggest u to try the first condition of ur rg in where clause as below ...
now let's see what's the output ???
DECLARE
l_action_rg recordgroup;
l_action_id item
:= FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
CREATE_GROUP_FROM_QUERY
('Action_Type_Text_lov',
' select flv.meaning Action_Type_Text_lov,
to_char(flv.lookup_code) Action_Type_Text_lov
from fnd_lookup_values flv where flv.lookup_type= 'XXSCP_GBL_ACTION_TYPE' ' );
l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');
POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;
@ Divya ;
Hi Divya Action_Type_Text_lov in the fist select is just an aliasHope this helps...
Regards,
Amatu Allah -
hi
can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
zulfiqarHi,
Try using a lexical parameter(&parm_1) for a string of values or a bind parameter(:parm_1) for a single value
Thanks,
Kimosabe -
Dropdown from record group?
I am new to oracle, i need to have dropdown value list from a database, i know LOV, but it does not support dropdown so i need some way from LOV or from Record group.
Please if anybody guide me that how can i make a dropdown linst using LOV or Record Group.
I am using 10g forms.
Kind Regards
NaveedYou can populate list item (if you mean list item) using record group.
Example: you can use create_group_from_query and populate_group built-ins to get the values from database into record group.
Then you can use populate_list to populate list item.
Also, have a look at Oracle Forms help for more information and examples on built-ins.
regards
Srinidhi Rao -
List item - Record Group Query - Alignment improper Order
Dear All,
When am trying to concatenate two columns using record group query and displaying in the list item, the alignment is not in proper order.
E.g; Below is the columns and data's used in process:
CODE_VALUE SHORT_DESC DESCRIPTION
ROLL1 Customer - Non accidental Production, booking with other carrier, bad projection.
ROLL2 Customer - Accidental L/C, B/L draft, Customs, Samples, AMS, LAR.
ROLL3 ABC - Lack of empty Lack of empty units.
ROLL4 ABC CDE - Roll over AGR RRR decision.
ROLL5 ABC XXX - Accidental IMO or OOG refused, operational problems, Cut & Run.
ROLL6 ABC YYY - Fictive booking Equipment buffer, dummy booking.
Below is the record group query used in forms:
PROCEDURE p_when_new_form_instance
IS
GROUP_ID recordgroup;
list_id item := FIND_ITEM ('BLK_CONTROL.LI_ROLL_REASON');
rg_name VARCHAR2 (20) := 'LI_ROLL_REASONS';
status NUMBER;
l_query VARCHAR2 (4000);
BEGIN
l_query :=
'SELECT rpad(short_desc,50,'' '')||'' | ''||description description, code_value code_value FROM codes WHERE code_value IN (''ROLL1'', ''ROLL2'', ''ROLL3'',''ROLL4'',''ROLL5'',''ROLL6'')';
GROUP_ID := CREATE_GROUP_FROM_QUERY (rg_name, l_query);
status := POPULATE_GROUP (GROUP_ID);
POPULATE_LIST (list_id, GROUP_ID);
EXCEPTION
WHEN OTHERS
THEN
pl_common.when_others;
END;
Moreover i have my list item font property by default as ""MS SANS SERIF" and when i run in Forms Builder am getting the alignment as below.
Result:
====
DESCRIPTION CODE_VALUE
Customer - Non accidental | Production, booking with other carrier, bad projection. ROLL1
Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR. ROLL2
ABC - Lack of empty | Lack of empty units. ROLL3
ABC CDE - Roll over | AGR RRR decision. ROLL4
ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run. ROLL5
ABC YYY - Fictive booking | Equipment buffer, dummy booking. ROLL6
Above order is not the expected result as all the |(pipe) symbol should display in proper order as below.
Expected Result:
==========
DESCRIPTION CODE_VALUE
Customer - Non accidental | Production, booking with other carrier, bad projection. ROLL1
Customer - Accidental | L/C, B/L draft, Customs, Samples, AMS, LAR. ROLL2
ABC - Lack of empty | Lack of empty units. ROLL3
ABC CDE - Roll over | AGR RRR decision. ROLL4
ABC XXX - Accidental | IMO or OOG refused, operational problems, Cut & Run. ROLL5
ABC YYY - Fictive booking | Equipment buffer, dummy booking. ROLL6
I tried with RPAD and LPAD still the alignment issue is there; i know the issue is because of invariable length of the font.
But is there any solution to override this it will be of great help.
So please help!!!!!!!!!!!!!!!!!
Thanks..................
Regards,
Sunil.GHi Francois,
Thanks for your reply. I have tried changing the font to "Courier(Western)" it is working fine.
But as per the standards defined, it should be "Ms Sans Serif" nothing apart from that.So that is where the problem lies. :(
Regards,
Sunil.G -
On my iPhone 5, upgraded to iOS 7, the lists in Reminders are impossible to delete. When I press Edit button in the right corner of the app, the button Delete list is supposed to be at the bottom, but it's empty there, the deal is I could delete some of the lists, but most of them I can't. I tried delete iCloud account from iPhone, but they are still there, and still no Delete button. In the Browser I don't see those lists, so cannot delete them from the Browser as well. Could you help me?
Read on another thread here that you now swipe in the opposite direction. Try swiping right to left.
-
Essbase cannot union filters from multiple groups
Hi All,
I got a problem to provisioning on Shared Service.
In some case, I need to grant multiple filters to a Essbase users, say user01.
However, each user can associated one Essbase filter only.
For better management, I create multiple groups with different filters and assign the user, user01, into the groups.
For first two groups are working normally. However, Essbase cannot "union" all filters from multiple groups after the users join the third groups.
However, I try to combine the three filter into a filter with three rows. It is working!!!
It is because there are large number of users in external LDAP. It is unmanageable when combining multiple filters into a filters. Is there any way to solve this problem? or is there any better approach to do the security ?
Thanks in advance!!!
Regards,
TKCThanks for your reply.
I have following structure in Essbase. I try to make it simple to understand.
Dept (dimension)
|_C00
|_CTTL
|_C01
|_C02
Project (dimension)
|_GEN
|_P01
|_P02
|_P03
|_PI
|_A
|_P01 (shared member)
|_B
|_P02 (shared member)
|_P03 (shared member)
Group A with Filter F01
Read - CTTL, IDESCENDENT(A)
Group B with Filter F02
Read - C01, P01, P02
User joins A and B group.
The end result of user is that
he can access CTTL of P01 only
he can access C01 of P01 and P02 only
he cannot access C02 of any Project dimension
he cannot access CTTL of P03
However, I found that when I change to metaread. The result is going wrong.
he can access C01 of P01, P02 and P03 only.
It is because I need to block user to view members which he cannot access.
I need "metaread" function.
So somebody tell me how to achieve this? Thanks in advance.
Edited by: user070322 on Jan 4, 2009 8:37 PM
Edited by: user070322 on Jan 5, 2009 6:04 PM -
How do I create a contacts list from a group of emails in a folder?
I want to send emails to all the people in a folder without having to look up each person's email and add them to a contacts list. I do have a contacts list that I could move all of them to.
How can I accomplish this task with the least amount of effort?
I am doing this from my old desktop Mac, but do have Firefox on a much newer iMac laptop.Sorry, that isn't a Firefox support issue. Which website or what program are you using for email?
-
Populate list from recordset on Parent/Child form
We have a parent/child form and want to populate several lists from recordsets. We can populate the child canvas by calling a procedure from the WHEN NEW FORM INSTANCE trigger but the same code fails when trying to populate a list on the Parent canvas. If I move the code to a PRE-BLOCK trigger on the parent block, then it works. I just kept moving the code until I found something that works. Can anyone tell me why it wouldn't work from the WHEN NEW FORM INSTANCE trigger? Is PRE-BLOCK the correct place?
WHEN-NEW-FORM-INSTANCE trigger
Add_Orgs_Lists('HR_PERSONS.OFFICE_SYMBOL');
PROGRAM UNIT
PROCEDURE Add_Orgs_Lists (list_name VARCHAR2) is list_id ITEM;
col_name VARCHAR2(80) := SUBSTR(list_name, INSTR(list_name, '.')+1);
sql_stat VARCHAR2(2000);
BEGIN
--Find ID for list item.
list_id := FIND_ITEM(list_name);
IF ID_NULL(list_ID) THEN
MESSAGE('List Item ' ||list_name|| ' does not exist.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Build the SQL statement.
-- message('In Get_Org');
sql_stat := 'SELECT Distinct Org_Name, Org_Name FROM HR_Organizations
ORDER BY 1 ASC';
Populate_the_List(list_id, sql_stat);
EXCEPTION
WHEN OTHERS THEN
MESSAGE('Internal error occurred in Add_Orgs_List.');
RAISE FORM_TRIGGER_FAILURE;
END Add_Orgs_Lists;
PROCEDURE Populate_the_List (list_id ITEM,
sql_stat VARCHAR2) is
group_id RecordGroup;
outcome NUMBER;
--List_Elements VARCHAR2(40);
BEGIN
--message('In Populate_the...');
--Create temporary record group.
group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
IF ID_NULL(group_id) THEN
MESSAGE('Record Group could not be created in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate record group.
outcome := POPULATE_GROUP(group_id);
IF outcome <> 0 THEN
MESSAGE('Record Group could not be populated in Populate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END IF;
--Populate list item
POPULATE_LIST(list_id, group_id);
--Destroy the temporary record group to release resources
DELETE_GROUP(group_id);
EXCEPTION
WHEN OTHERS THEN
MESSAGE('Internal error occured in Popluate_the_List.');
RAISE FORM_TRIGGER_FAILURE;
END Populate_the_List;
The error is FRM-41337 Cannot populate the list from record group. It happens when we open the form. We are using the same code to populate the lists on the child form (except the SQL statement is different) and it works correctly.
I appreciate your help. -
Most urgent:::: passing parameter list to reports containing record groups
hi
can any one help me , i am getting frm-41214 when i pass a paramter list containing record group as data parameter to run_report_object as parameter, calling report from forms 10g, but when i dont pass the parameter list the report runs displaying no data(as it should do), otherwise it dont run and display the frm-41214
zulfiqarHi!
To suppress Oracle Reports native Parameter Form just add:
add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
Andrew Velichko
Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
null -
How do I permanently remove a name from a group list?
I would like to permanently remove a name from a group list. I have highlighted and deleted and it still won't go away. I have deleted him from my address book but I cannot remove him from the group list.
There is the mailing list stored (which addressbook)? Perhaps the addressbook is read-only or unavailable?
-
Dynamically creating a Record Group based on Previously entered Record Grou
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Hi,
I know how to dynamically create a record group based on a query and putting the code in When new form instance.
My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
For example
I have a record group with selects a Location,
when the user selects the Location from a list of values
the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
How can I populate the 2nd record group at run-time when I do not know what site the user will select?
If I simply populate in when new form instance as in location and just select everything, the list of values populates.
CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
I have put the code in the Location field in the when-list-changed trigger.
I am getting this error:
frm-41337: cannot populate the list from the record group
here is the code:
DECLARE
v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
v_recgrp RecordGroup; -- Record Group
v_status Number; -- Return Value of Populate_Group function.
c_where VARCHAR2(1000);
BEGIN
IF :location = '1' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
ELSIF :location = '2' THEN
c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
ELSIF :location = '3' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
ELSE
c_where := ' 1=1'; --EVERYTHING
END IF;
v_recsql := 'SELECT cost_centre, description FROM cost_centres where '||c_where;
-- Create the Record Group
v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
IF NOT ID_NULL(v_recgrp)
THEN -- No Error, record group has been successfully created.
-- Populate Record Group
v_status := POPULATE_GROUP('v_recgrp');
IF v_status = 0
THEN -- No Error. Record Group has been Populated.
POPULATE_LIST('block.CC', 'v_recgrp');
END IF; -- IF v_status = 0
-- Delete the Record Group as it is no longer needed.
DELETE_GROUP('v_recgrp');
END IF; -- IF NOT ID_NULL(v_recgrp)
END;thanks for your assistance.Hi,
Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
-Ammad
Maybe you are looking for
-
Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(
-
I cant get my email to work on my iphone 4
hi, i cant get my email to work on my iphone, iv added my email address and password but when i go to mail there are no emails showing or accounts. my email is showing as on in settings but doesnt seem to be working. any advise would be great, thanks
-
I have several groups on my bookmark bar. If I am looking at my home page & hit the open tab group button, is there any way to get them to open in new tabs & not include my home page which then disappears to make way for one of the sites in my tab gr
-
Hi, Need assistance regarding UDF and UDT, I cant add another entry row in the UDF, The UDT is linked with the UDF, I have checked all the other UDF linked with UDF it works fine but only one cant add. I cant click the field to manually add the data
-
Limiting datasource replication only to 3.x format
Hi, Is there anyway to limit the choosing of the relication format option (3.x format or new datasource format) by authorization? I have raised an OSS but wanted to know if someone knows ways to do anything about it or not? Thanks