Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: forms 4.5

Re: forms 4.5

From: Angelo Cavallaro <angelo.cavallaro_at_pcm.bosch.de>
Date: 1998/02/17
Message-ID: <34E955EA.39CD@pcm.bosch.de>#1/1

Hiho,

did you create the record group at runtime ? Cause if not it won't work.

Here's an example how you could do it:

Declare

  The_RecGroup	RecordGroup;
  The_Label	GroupColumn;
  The_Value	GroupColumn;
  errcode	Number;

Begin
  The_RecGroup := Create_Group('MY_GROUP');   The_Label := Add_Group_Column(The_RecGroup, 'THE_LABEL',CHAR_COLUMN,10);
  The_Value := Add_Group_Column(The_RecGroup, 'THE_VALUE',CHAR_COLUMN,10);
  errcode := Populate_Group_With_Query(The_RecGroup,

             SELECT LABEL_COLUMN, VALUE_COLUMN FROM YOUR_TABLE ORDER BY 1');
  populate_list('The_List_Item',The_RecGroup); End;

Greez,
Angelo.
Philip Man wrote:
>
> when populating a list item programmatically
> I get the error:
>
> FRM-41334 invalid record group for list item population
>
> I have checked the data types are of the same type etc.,
> and all seems ok.
> The Combo box i want is just to show a list and my
> record group just selects a single column from the table.
>
> I can add the items using the ADD_LIST_ITEM but i think there
> must be a better way or that I am overlooking something.
>
> TIA
>
> PM
 

-- 
-----------------------------------------------------------------
Angelo Cavallaro     /  /  /   \     TECTUM Beratungsgesellschaft
ORACLE-SW-Berater   /  /  /     \    für Informationsverarbeitung
ancavall.NOSPAM    /  /  /-------\   Tel: 0711/99073-10
@aol.com          /__/__/_________\  Fax: 0711/99073-99

-----------------------------------------------------------------
	 Visit the Home of the Green Ribbon Campaign:

		http://www.ponce.oisoft.com/

-----------------------------------------------------------------
Received on Tue Feb 17 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US