Home » Developer & Programmer » Forms » populate list element at run time (how to populate list items at run time)
populate list element at run time [message #340052] Mon, 11 August 2008 04:38 Go to next message
krishna_g
Messages: 1
Registered: August 2008
Junior Member
DECLARE
CURSOR COUNTRY_CURSOR IS SELECT COUNTRY_NAME,CNTRY FROM COUNTRY;
BEGIN
FOR COUNTRY_REC IN COUNTRY_CURSOR
LOOP
ADD_LIST_ELEMENT('COUNTRY',(COUNTRY_CURSOR%ROWCOUNT)+1,
COUNTRY_REC.COUNTRY_NAME,COUNTRY_REC.CNTRY);
END LOOP;

END;

I want to populate the list items at run time. I wrote the above code in when-new-form-instance trigger. But when I run the form I recived a error
FRM-30085: Unable to adjust form for output.
Re: populate list element at run time [message #341416 is a reply to message #340052] Mon, 18 August 2008 18:30 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
And what happens when you run the program when you don't have this code in your form?

David
Previous Topic: CURRENT RECORD
Next Topic: Removing window menu from the default menu of the form
Goto Forum:
  


Current Time: Mon Feb 10 00:05:05 CST 2025