From my searching, it seems this functionality is not possible. I am hoping someone can prove me wrong.
I understand that subreports are replaced by the drilldown ability, which is fine if the user is at a computer. However, I need a report that can be printed and then 'used' in that form. This may mean walking through a warehouse and checking various items in stock.
For each main row, I want to show a set of details about that item. Then I want to show several lists of information related to that main row. In Access, this is simple subreport functionality.
Thanks in advance.
September 30, 2005, 02:45 AM
susannah
its version 7.? and they call it 'accordion' reports. look at Cyril Joy's post below, titled 'expandable'
September 30, 2005, 07:16 PM
dhagen
There are techniques for doing subreports if the output is pdf. I'm pretty sure that you can do similar stuff in html, but it would be a lot harder!
I can post an example later if you need it.
October 02, 2005, 09:44 PM
Robert Billing
I am currently on version 5.3.3. Can you point me to somewhere I can see some example output from a expandable or accordian report?
dhagen, I would be very keen to see some examples of the techniques you are refering to. I am currently using html output, although it would not be an issue to use pdf.
October 03, 2005, 02:49 AM
dhagen
Here is a quick example. The idea is to run each sub-report as a seperate report, and append the results together in a hold file. It is important to account for all columns in the final report in each extract. You assign a blank to alphas, or zero supress the numerics. In the final report, you can have columns over write one another, because only the sub-report's columns will have values to display.
Here is the source:
TABLE FILE GGSALES SUM COMPUTE C_SORT/I5 = 1; UNITS DOLLARS BUDUNITS BUDDOLLARS COMPUTE C_CAT/A11 = ' '; COMPUTE C_DOL/I8S = 0; COMPUTE C_BDOL/I8S = 0; BY REGION BY ST ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS MYSUB FORMAT ALPHA END FILEDEF MYSUB CLEAR FILEDEF MYSUB DISK mysub.ftm (APPEND TABLE FILE GGSALES SUM COMPUTE C_ST/A2 = ' '; COMPUTE C_SORT/I5 = 2; COMPUTE C_UNITS/I8S =0; COMPUTE C_DOLLARS/I8S =0; COMPUTE C_BUDUNITS/I8S =0; COMPUTE C_BUDDOLLARS/I8S =0; COMPUTE C_CAT/A11 = MAX.CATEGORY; COMPUTE C_DOL/I8S = DOLLARS; COMPUTE C_BDOL/I8S = BUDDOLLARS; BY REGION BY CATEGORY NOPRINT ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS MYSUB FORMAT ALPHA END
TABLE FILE MYSUB PRINT C_UNITS IN 20 AS '' C_DOLLARS AS '' C_BUDUNITS AS '' C_BUDDOLLARS AS '' C_CAT IN 15 AS '' C_DOL IN 25 AS '' C_BDOL IN 35 AS '' BY REGION AS '' BY C_SORT NOPRINT BY C_ST AS '' ON REGION SUBHEAD " " "Region<12>State<23>Units<30>Dollars<40>Bud Units<50>Bud Dollars" ON C_SORT SUBHEAD " " "<15>Category:<26>Actuals<36>Budgets" WHEN C_SORT EQ 2; ON C_SORT SUBFOOT " " WHEN C_SORT EQ 2; ON TABLE SET ONLINE-FMT PDF ON TABLE SET STYLE * TYPE=SUBHEAD, LINE=2, STYLE=BOLD+UNDERLINE, $ ENDSTYLE END
Below is what the hold file would look like before the final report: