January 14, 2008, 12:22 PM
stueyForcing Report Assistant to generate columns where there is no data present
I have a 'My report' that has been created out of a Reporting Object that the user wants to amend by going into Reporting Assist and change , then Run - Within the code there is a COLUMNS statement to force columns where there is no data (for example, across Month, but some months are not populated, but the user still wants to see a zero for that month). This runs perfectly well when just selecting the 'run' option however when going into RA it decides to drop the COLUMNS syntax and runs the resulting program without, thereby resulting in columns only being displayed where there is some data.
In TABLE FILE CAR parlance...
TABLE FILE CAR
SUM SALES
BY COUNTRY
ACROSS SEATS
COLUMNS 2 AND 4 AND 5 AND 7
IF COUNTRY EQ 'ENGLAND'
END
Will force columns for 2,4,5 and 7 even though there is no data for 7 seats.
However when running with Report Assistant, it decides to ignore the COLUMNS statement and provide results only for seats 2,4 and 5 (ie where it has data) .
Anybody got any ideas ?
January 14, 2008, 01:03 PM
GinnyJakesStuey,
The RA is not at robust as the Report Painter. If you added the COLUMNS with the editor, it will wipe them out.
Try finding out what the user wants to change and possibly make that an amper variable that he/she can adjust at run time.