Focal Point
Nested sub-reports

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

May 17, 2004, 09:17 PM
Nightowl
Nested sub-reports
I am sure this is possible. What is the best method for creating nested sub reports? I want for each row in the parent report, several child reports under the parent. An example is below where each customer has a nested sub report for orders and invoices. The only relationship between this data is the customer row ID.

Customer A (Table A)
Nested Report 1 - Customer Open Orders (Based on Cust_id param) (Table B)
XX YY ZZ
XX YY ZZ
XX YY ZZ

Nested Report 2 - Customer Invoice Documents (Based on Cust_id param) (Table C)
AA BB CC
AA BB CC
AA BB CC



Customer B (Table A)

Nested Report 1 - Customer Open Orders (Based on Cust_id param) (Table B)

XX YY ZZ
XX YY ZZ
XX YY ZZ

Nested Report 2 - Customer AR Documents (Based on Cust_id param) (Table C)
AA BB CC
AA BB CC
AA BB CC


So how can I exec two canned reports for each row in the parent report?

TIA,

Steve
May 18, 2004, 04:19 PM
susannah
Steve, how about a drilldown from your customerid in your principal report, with multiple choices for which report the user wants next.
Is it that your parent report presents the customer id's?
you can drill down from a customer id, and either (a):
give both ORder and INvoice reports on one page for the selected customerid
or(b):
give the user a choice of whichreport they want to run,either orders or invoices, and have two separate reports.
Which way do you want to go?
If (a), then write your fex to produce both reports , using
ON TABLE HOLD AS MYTAB1 FORMAT HTMTABLE
...more fex
ON TABLE HOLD AS MYTAB2 FORMAT HTMTABLE
..
END
and then at the end of your fex
-RUN
-HTMLFORM BEGIN
< !-- WEBFOCUS TABLE MYTAB1 -->
< !-- WEBFOCUS TABLE MYTAB2 -->
-HTMLFORM END

If (b), then lookup the feature DRILLMENUITEM to see how to do multiple choice drill downs.
May 18, 2004, 04:25 PM
Nightowl
What the users wants is best described as automatically drilled down. It's as if you had the list of customers with a drilldown on the ID but the drilldown happens automatically with both secondary reports displaying after each Customer ID row.
May 19, 2004, 08:38 PM
susannah
oh, so you want to loop by a customer list,
and for each customer id, print 2 reports.
right?
1. you can do just that...have your customer ids print out to a flat file, then -READ that file, and for each CUSTID that you read from the file, create 2 reports . (your customer list file is made in the agent and stays in the agent, no electronic clutter)
or..
2. you can use FML to create wildly different looking paragraphs from a single data set, but that hurts my head.
..If you need any help setting up -READ, just holler.
May 19, 2004, 08:41 PM
Nightowl
...but that hurts my head. So does reading from a file for me Smiler
I wish the product would let me do it in DevStudio Report Painter bt drag and drop.
Thanks for your info. Looping will have to do for now.
July 19, 2013, 10:44 AM
Rick V
A true GUI report tool will allow a creation of "n" reports that take 1 or more parameters. These should then be able to be dropped onto the design space and allow each row on the main report to call each sub-report to display it's data for the current row in the main report. Putting data to a flat file for looping is 80s technique and very inefficient from a design perspective.


WebFOCUS 7.7.03
Windows NT
July 19, 2013, 12:01 PM
j.gross
Perhaps a compound PDF report with drillthrough (summary report serving as TOC for detail reports below) is what you're looking for.

I believe the detail reports can be produced in a single report request, using REPAGE. So there would be no need for dialog manager looping.


- Jack Gross
WF through 8.1.05
July 22, 2013, 11:11 AM
WF_IL
Hi

I think you can achieve it using developer studio GUI -> (PDF)composer , use the feature for coordinated reports,
as long as the first BY field is the same for all reports , in your example, customer id, webfocus will automatically create all reports per customer id
This works in PDF, DHTML, AHTML


Yours,
Eran
SRL Products

http://www.srl.co.il

July 22, 2013, 11:36 AM
Francis Mariani
It seems a little odd that your first post is a criticism. How about posting a question about how to do something - we may be able to answer that.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server