FRM-41334: Invalid record group for list population [message #464027] |
Mon, 05 July 2010 23:03 |
jocylau
Messages: 11 Registered: July 2010
|
Junior Member |
|
|
I created 3 radio buttons and one list item. Different options will appear according to the radio button the user has clicked on. i've created 3 recordgroups and 3 LOV. the first two for seven_eleven and mannings work fine, but not for GNC. is it because there is only one option for list item in GNC? Must it be more than one? I've tried to another option as space but it still doesnt work.
Please help me to solve the prob. Thanks!
DECLARE
it_id1 item;
V_SEVEN_ELEVEN RECORDGROUP:=NULL;
V_MANNINGS RECORDGROUP:=NULL;
V_GNC RECORDGROUP:=NULL;
BEGIN
it_id1 := find_item('B_DEV.LIST_ITEM');
V_SEVEN_ELEVEN :=FIND_GROUP ('V_SEVEN_ELEVEN');
V_MANNINGS :=FIND_GROUP ('V_MANNINGS');
V_GNC :=FIND_GROUP ('V_GNC');
IF (:B_DEV.FOR_BANNERS = 'SEVEN_ELEVEN') THEN
POPULATE_LIST('B_DEV.LIST_ITEM',V_SEVEN_ELEVEN);
end if;
IF (:B_DEV.FOR_BANNERS = 'MANNINGS') THEN
POPULATE_LIST('B_DEV.LIST_ITEM',V_MANNINGS);
end if;
IF (:B_DEV.FOR_BANNERS = 'GNC') THEN
POPULATE_LIST('B_DEV.LIST_ITEM',V_GNC);
end if;
END;
|
|
|
|
|
|
|
|
|
|
|
Re: FRM-41334: Invalid record group for list population [message #464707 is a reply to message #464706] |
Thu, 08 July 2010 23:07 |
|
vamsi kasina
Messages: 2112 Registered: October 2003 Location: Cincinnati, OH
|
Senior Member |
|
|
Quote:Anyway, I'm not talking about the number of values.
You need to concentrate on the number of columns for each Record Group. Check my sample once again.
It doesn't bother about the number of values for each column name.
But you should have two column names.
In my sample I can have one value also.
NUMBER - 1
WORDS - ONE.
Here the LOV will be populated by 1 and ONE, NOT NUMBER and WORDS.
Those are just names of the columns.
So, I think your other Records Groups might also be wrongly defined. Crosscheck them once.
In a nutshell, for each of the record group, you need to have two column names, those can be anything like NAME, VALUE or whatever.
But the values vary.
For V_SEVEN_ELEVEN:
NAME - rmsehk, smsehk
VALUE - rmsehk, smsehk
For V_MANNINGS:
NAME - vmmnhk,ommnhk,qmmnhk
VALUE - vmmnhk,ommnhk,qmmnhk
For V_GNC:
NAME - smghhk
VALUE - smghhk
By
Vamsi
|
|
|
|
|
|
|
|
|