Grace Cheong
6th July 2011, 14:05
Hi,
I would like to get your help to avoid data to be sent more than once. Current data send to display on report at UI script is using rprt_send().
My desired report output:
--- Detail section -----
Customer Order Num
Cust001 Ord-1001
---after.field section----
DO-1001
DO-1002
DO-1003
Program coding:
function read.main.table()
{
Select * from whinh800
Where whinh800.custno = "Cust001"
selectdo
OrderNo = whinh800.ordno
endselect
DisplayDONumber()
}
function DisplayDONumber()
{
Select * from whinh900
Where whinh900.OrderNo =:OrderNo
selectdo
DO_num = whinh900.do_num
rprt_send()
endselect
}
But system display as:
--- Detail section -----
Customer Order Num
Cust001 Ord-1001
Cust001 Ord-1001
Cust001 Ord-1001
---after.field section----
DO-1001
DO-1002
DO-1003
Looks like the customer & Order Num display followed by the no.of DO return. How to avoid this and control only display once? I did set the field to "suppress", it's still the same.
Thanks.
Best Regards,
Grace
I would like to get your help to avoid data to be sent more than once. Current data send to display on report at UI script is using rprt_send().
My desired report output:
--- Detail section -----
Customer Order Num
Cust001 Ord-1001
---after.field section----
DO-1001
DO-1002
DO-1003
Program coding:
function read.main.table()
{
Select * from whinh800
Where whinh800.custno = "Cust001"
selectdo
OrderNo = whinh800.ordno
endselect
DisplayDONumber()
}
function DisplayDONumber()
{
Select * from whinh900
Where whinh900.OrderNo =:OrderNo
selectdo
DO_num = whinh900.do_num
rprt_send()
endselect
}
But system display as:
--- Detail section -----
Customer Order Num
Cust001 Ord-1001
Cust001 Ord-1001
Cust001 Ord-1001
---after.field section----
DO-1001
DO-1002
DO-1003
Looks like the customer & Order Num display followed by the no.of DO return. How to avoid this and control only display once? I did set the field to "suppress", it's still the same.
Thanks.
Best Regards,
Grace