>>>>I have seen threads that discuss creating the data file necessary to drive a report in the Init of the report Data Environment.
>>>>
>>>>My question is that if this technique is followed, how do you create variables that are necessary for the report heading / title band. I.E. if you need to report total records or records for a particular status at the beginning of the report
>>>>
>>>>TIA,
>>>>
>>>>Perry
>>>I would create a report object that has the information you want in the header. It makes life easy if you use the same format everytime.
>>>
>>>Wayne
>
>
>A report object sounds like the way to go for typical report headings such as selected date range, selected customers etc. But I also have the need to display subtotals at the beginning of one of the reports. The subtotals are for the different resolutions for customers for the day. I think public variables might be the way to got for those.
>
>PF
IMO, it is never a good idea to use PUBLIC variables. This can cause too many problems. If you are creating the report and calling the REPORT FORM from the same program, variables in the program are still in Scope in the report. I would stay away from PUBLIC variables.
OTOH if you do want to think about using objects, we use a base report class that holds the information I was referring to in my previous post. Then we subclass it to hold any properties we need for the particular report. Ain't OOP great!
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown