searocket
29th May 2012, 13:03
I am trying to print shortages on the packing slips report whinh447501000.
I have added After.field order layout and in my report script I have;
after.order.2:
before.layout:

select whinh220.*
from whinh220
where whinh220.orno = :order and whinh220.shrt = tcyesno.yes
selectdo
endselect

This will print one shortage record ok - but I want to print all the shortage records for the order.
Can anyone suggest how to do this?

thanks
bob

PS we don't have source

mark_h
29th May 2012, 17:36
Yes - use layout.again. To keep getting the next record until there are no more records. You search for layout.again to see how this can be accomplished.

searocket
15th June 2012, 13:30
Thanks Mark, I have managed to use layout.again.