list item runtime [message #690148] |
Fri, 01 November 2024 12:14 |
shahzad-ul-hasan
Messages: 628 Registered: August 2002
|
Senior Member |
|
|
Dear i have a table
create table fees1 (
chl number(7),ffdat date,
sno number(5),ftut number(6),ftot number(6));
insert into fees1
values
(123,'01-OCT-2024',1,1300,1300);
insert into fees1
values
(123,'11-OCT-2024',2,1500,1500);
insert into fees1
values
(124,'03-OCT-2024',1,1500,1500);
insert into fees1
values
(124,'09-OCT-2024',2,1500,1500);
insert into fees1
values
(223,'02-OCT-2024',1,1500,1500);
insert into fees1
values
(224,'04-OCT-2024',1,1700,1700);
COMMIT;
i want to display record in tabular form. i want to display at runtime the fdate,ftut,ftot in runtime list item (tlist/poplist) with distinct chl_no using record group.
|
|
|
|
Re: list item runtime [message #690150 is a reply to message #690149] |
Tue, 05 November 2024 08:40 |
shahzad-ul-hasan
Messages: 628 Registered: August 2002
|
Senior Member |
|
|
dear
Begin
If Populate_Group_With_Query('R_G','Select fdate,ftut,ftot from fees1
Where chl=:chl_no
Order by fdate') Then
Clear_List('Std');
Populate_List('fees1.fdate','R_G');
Populate_List('fees1.ftut','R_G');
Populate_List('fees1.ftot','R_G');
End if;
Exception
When Others Then
Message(Sqlerrm);
End;}
my fields datatypes are fdate date, ftut number,ftot number.but cannot populate in required fields. please advised.
|
|
|
Re: list item runtime [message #690151 is a reply to message #690150] |
Wed, 06 November 2024 04:09 |
cookiemonster
Messages: 13952 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
The populate_list builtin requires that the record group passed to it has a 2 column structure - 1st column is the value shown on screen, 2nd column is the value stored.
Your record group has 3 columns.
I'm not sure what you're trying to do here, but using lists the way you're trying to simply won't work.
|
|
|