Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Master Detail
 Login/Join
 
Member
posted
I want to do this for a report to show records that have 0 to many history records, all in one report, NOT as a drilldown. Can anyone help?

master
detail
detail
detail
master
master
detail
 
Posts: 21 | Registered: September 06, 2006Report This Post
Virtuoso
posted Hide Post
Compound Report?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
depends on the quantity and type of data. you haven't included any of that so I can only generalize--

One way that we do this is to put all of the fields for each "master" record in a subhead with a BY on a unique field for each record. Then printing the "detail" fields pertaining to that "master" record under each record. You can also accomplish something similar with FOLD-LINE but the GUI didn't handle this very well several versions back when i was playing with it and so I never did anything with it in GUI then. We have several using this technique as well that have been hand-written. Maybe it's handled better now in the GUI.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
Prarie, I did some research on compound reports, not sure if that would help me out.

Darin Lee, I tried FOLD-LINE, but that seems to only be for PDF. I also tried SUBHEAD, but I want the master record to have column headings, and be in distinct columns so it can be exported to Excel.

The data I am working with has monetary transaction records, and there could be one or more comments attached to each record, typically 2 comments at least.

So...
ACCOUNTNUMBER POSTDATE AMOUNT
12345 11/26/2007 25.00
user123 11/27/2007 this is my comment
user123 11/27/2007 this is another comment
 
Posts: 21 | Registered: September 06, 2006Report This Post
Expert
posted Hide Post
Can't you just stick the Master data in a SUBHEAD and make the detail records the rows of the report?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
When you analyze the question, this is just basic FOCUS. You have a file with a parent records (master) and child records (detail). You don't say what the data source is, but it should be irrelevant if you have properly described the data in your .mas file. Consider the following master. Now this is a flat file, but you can do the same thing with a FOCUS data base or relational tables. HREC is the Header and is identified with 'H' in column 1. DREC is the Detail and identified with 'D' in column 1. This master has the relationship you described. For every header, there can be 0 to many detail rows.
FILE=FMFCEXT ,SUFFIX=FIX
$
$ Financial Management Foster Care Extracts
$
 SEGNAME=HREC,$
   FIELD=RECTYPE     , ALIAS=H, A1  , A1  , $
   FIELD=RPT_DATE    ,        , MYY , A6  , $
   FIELD=RSRC_NAME   ,        , A30 , A30 , $
   FIELD=CONTRACT_NO ,        , A6  , A6  , $
   FIELD=COUNTY_ID   ,        , A2  , A2  , $
   FIELD=ADDRVER     ,        , A1  , A1  , $
   FIELD=ADDRESS     ,        , A40 , A40 , $
   FIELD=CITY        ,        , A13 , A13 , $
   FIELD=STATE       ,        , A2  , A2  , $
   FIELD=ZIP         ,        , A10 , A10 , $
   FIELD=ADFILLER    ,        , A19 , A19 , $
   FIELD=RSRC_SSN    ,        , A9  , A9  , $
   FIELD=SUPL_SW     ,        , A1  , A1  , $
   FIELD=APPROVED_BY ,        , A10 , A10 , $
   FIELD=H1FILL      ,        , A7  , A7  , $
   FIELD=RSRC_ID     ,        , A8  , A8  , $
   FIELD=CHECK_SEQ   ,        , A5  , A5  , $
   FIELD=H2FILL      ,        , A30 , A30 , $
 SEGNAME=DREC,PARENT=HREC,$
   FIELD=RECTYPE     , ALIAS=D, A1  , A1  , $
   FIELD=CASE_ID     ,        , A10 , A10 , $
   FIELD=PERS_NO     ,        , I3  , A3  , $
   FIELD=CMD_CASE_ID ,        , A7  , A7  , $
   FIELD=CMD_PERS_NO ,        , I3  , A3  , $
   FIELD=CARE_TYPE   ,        , A2  , A2  , $
   FIELD=UNIT_CODE   ,        , A2  , A2  , $
   FIELD=CLIENT_LNM  ,        , A12 , A12 , $
   FIELD=CLIENT_FNM  ,        , A7  , A7  , $
   FIELD=CLIENT_MNM  ,        , A1  , A1  , $
   FIELD=CLIENT_BDT  ,        , YYMD, A8  , $
   FIELD=CLIENT_SSN  ,        , A9  , A9  , $
   FIELD=BEGIN_DAY   ,        , I2  , A2  , $
   FIELD=END_DAY     ,        , I2  , A2  , $
   FIELD=TOTAL_DAYS  ,        , I2  , A2  , $
   FIELD=PAY_RATE    ,        , I5  , A5  , $
   FIELD=CLAIM_AMT   ,        , I7  , A7  , $
   FIELD=ADJ_SW      ,        , A1  , A1  , $
   FIELD=ADJ_DT      ,        , MYY , A6  , $
   FIELD=DFILL1      ,        , A35 , A35 , $
   FIELD=IVESTS      ,        , A2  , A2  , $
   FIELD=LICENSED    ,        , A1  , A1  , $
   FIELD=DCN         ,        , A9  , A9  , $
   FIELD=DFILL2      ,        , A63 , A63 , $

Your basic fex will look something like this:
TABLE FILE FMFCEXT
PRINT CLIENT_SSN TOTAL_DAYS PAY_RATE CLAIM_AMT
   BY RSRC_ID NOPRPINT
   BY CHECK_SEQ NOPRINT NOSPLIT
   ON CHECK_SEQ SUBHEAD
"<RSRC_NAME>"
"<ADDRESS>"
"<CITY <STATE>  <ZIP></1>"
   ON TABLE SET ALL ON
END

Once this is working, then you can add other fields, formatting, etc.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Member
posted Hide Post
I understand what you are saying jgelona, but I still have the issue I mentioned above about the report not fitting into columns.
 
Posts: 21 | Registered: September 06, 2006Report This Post
Expert
posted Hide Post
TABLE FILE CAR
PRINT
LENGTH
WIDTH
HEIGHT
WEIGHT
WHEELBASE
BY COUNTRY NOPRINT
BY CAR NOPRINT
ON CAR SUBHEAD
"COUNTRY <+0> CAR"
"<COUNTRY<CAR"
ON TABLE SET STYLE *
TYPE=SUBHEAD, HEADALIGN=BODY, $ 
END


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Tom,

quote:
I understand what you are saying jgelona, but I still have the issue I mentioned above about the report not fitting into columns.


Are your comments too wide? Is that the problem?


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
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Thanks Francis for your detailed posting, that makes perfect sense and that is exactly what I am going to use.

This issue is resolved. Smiler
 
Posts: 21 | Registered: September 06, 2006Report This Post
Expert
posted Hide Post
Glad it worked out.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders