Focal Point
Creating a report using embedded Subreports

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8121048331

March 17, 2005, 01:22 PM
Anthony
Creating a report using embedded Subreports
Hello,

Is there a way to create a basic report embedding several other basic subreports? Based on the nature of the data, by using independent basics subreports would satisfy then nature of this request.

Thanks
Tony
March 17, 2005, 01:34 PM
Boogarweed
This may be approached in several different ways but I'm not sure exactly what you are trying to do. Can you explain further?
March 17, 2005, 01:35 PM
<Pietro De Santis>
What format of report do you require? If it's HTML, then it's very easy. You create your "sub reports" as format HTMTABLE and then imbed them in an HTML page with !IBI.FIL.sub-report-hold-file-name;
March 17, 2005, 01:52 PM
reFOCUSing
You could also do a compound report.
March 17, 2005, 01:55 PM
Anthony
My apologies. If possible, I would like the report in adobe, but HTML would be just fine.

The report consists of of the following

Month To Date
Market NetSales PriorMonth %toPrior
Domestic $8000 $10000 80%

Quarter to Date
Market NetSales PriorQuarter %toPrior
Domestic $8000 $10000 80%

Year to Date
Market NetSales PriorYear %toPrior
Domestic $8000 $10000 80%


7 fields total in a cross-tab format. The subreports have already been created
March 17, 2005, 02:24 PM
reFOCUSing
The compound report tool should work fine for this type of report. But since your data looks to be the same in all three reports you could try doing a MATCH FILE or MORE.
March 17, 2005, 03:12 PM
Anthony
Thank you all very much. Let me give it a try.
October 24, 2007, 02:48 PM
dballest
Hi,

I have a similar issue with subreports. I have a report that has a detail portion and a grand total. On the original report (crystal), 1 field on the grand totals is a subreport (data from a completely different table). How do I do this in WebFOCUS.

Here's a sample code:
TABLE FILE CAR
PRINT
COUNTRY
CAR
DEALER_COST
RETAIL_COST
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SUMMARIZE AS 'TOTAL'
END

I would like to get the data for the grand total row for retail_cost(45,319) from another table (value for example could be 45,333). The dealer_cost grand total stays as it is. How do I do it? Do a use an Amper Var?

Thanks.

This message has been edited. Last edited by: dballest,


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE
October 24, 2007, 06:48 PM
GinnyJakes
You could use an amper variable but you'd probably have to put the other file total in a subfoot, not the automatically generated total line. Then use the stylesheet to line them up properly.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
October 25, 2007, 11:38 AM
dballest
Thanks for the reply Ginny. Looks like there would be extra work on the alignment part. I give it a try.


Dev: WebFOCUS 7.6.10, Data Migrator 7.6.10
QA: WebFOCUS 7.6.10, Data Migrator 7.6.10
Prod: WebFOCUS 7.6.2, Data Migrator 7.6.8
Windows 2K3, Tomcat 5.5.17, IIS 6
Usage: HTML, PDF, Excel, Self-serve, BID and MRE