Re: 4GL - Summary/Detail Report
Posted in 1998
Ahmad Ramzi Salleh wrote: > > I'm trying to run a summary/detail report which has different layout > from a single calling statement so that the report will come out like > this : > Summary Report for Cust AA <page break> > Detail Report for Cust AA <page break> > Summary Report for Cust BB <page break> > Detail Report for Cust BB <page break> etc... > > Any suggestion of how to archieve this? Sample 4GL program > is appreciated. Just create two report modules, one to format the detail pages and one to format the summary pages. You could do it in one report module using AFTER GROUP OF CustomerKey sections but you may find separate reports easier to manage. You will not have to deal with conditionals in the end-of-page handling logic. Initialize both reports then just send each row into the two report modules in turn. The forced page breaks in each report will force buffer flushing of the reports so they stay in sequence. Art S. Kagel