Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get records to show in Tlist

Status
Not open for further replies.

cj29bball

MIS
Nov 16, 2003
1
US
I am trying to use the populate_list built-in to display records from a record group. When I run the form i never see any of the records in the database but I know they are there. Here is the code:
DECLARE
group_id RecordGroup;
list_id Item := Find_Item('SELECT_CITY_TLIST');
status NUMBER;

BEGIN
group_id :=
Create_Group_From_Query('City_Group',
'SELECT to_char(Branch.BrchCity), to_char(Branch.BrchCity) FROM Branch WHERE
Branch.BrchState = :GLOBAL.STATE_SELECT');

status := Populate_Group('City_Group');
Populate_List(list_id, group_id);
END;
 
You need to change your query to

[tt]'SELECT to_char(Branch.BrchCity), to_char(Branch.BrchCity) FROM Branch
WHERE Branch.BrchState = ''' || :GLOBAL.STATE_SELECT || '''');[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top