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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     <Solved>How to create a compound report with summary and detail together?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
<Solved>How to create a compound report with summary and detail together?
 Login/Join
 
Gold member
posted
Hi,

I am trying to create a compound report with user id and total on the first line, then all detail under that. However, I can’t get detail match with summary. For example, use GGSALES table, I get report as following:

Page 1

Product ID Unit Sales Dollar Sales
C141 xxxxxx xxxxxxx (Total)

Product ID Date Unit Sales Dollar Sales
C141 xxxxxxxx xxxxxxxx xxxxxxx (Detail)
C141 xxxxxxxx xxxxxxxx xxxxxxx
C141 xxxxxxxx xxxxxxxx xxxxxxx

Page 2

Product ID Unit Sales Dollar Sales
C142 xxxxxx xxxxxxx (Total)

Product ID Date Unit Sales Dollar Sales
C141 xxxxxxxx xxxxxxxx xxxxxxx (Detail)
C141 xxxxxxxx xxxxxxxx xxxxxxx
C141 xxxxxxxx xxxxxxxx xxxxxxx

Since detail still display C141, I don’t need total on page 2 or at least if total line can display C141 will be good.

In my real report, I need User ID match total and detail. If someone can show me how to do this with GGSALES, then I can figure out how to do my real report.

Next question, in my real report, my total line is more than one line. How to split line without using “subfooting”? If take GGSALES as an example, I can assume something as following:

Page 1

Product ID Category Product Unit Sales Dollar Sales
C141 xxxxxx xxxxxx xxxxxx xxxxxxx (Total)
State City Store ID Budget Units Budget Dollars
Xx xxxxx xxxxx xxxxxxxx xxxxxxxx

Product ID Date Unit Sales Dollar Sales
C141 xxxxxxxx xxxxxxxx xxxxxxx (Detail)
C141 xxxxxxxx xxxxxxxx xxxxxxx
C141 xxxxxxxx xxxxxxxx xxxxxxx

How to create a report as above?


Ed
(WebFocus 7611)

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


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
 
Posts: 56 | Registered: June 17, 2011Report This Post
Guru
posted Hide Post
 SET BYDISPLAY = ON
TABLE FILE GGSALES
PRINT 
     'GGSALES.SALES01.UNITS'
     'GGSALES.SALES01.DOLLARS'
BY 'GGSALES.SALES01.PCD' NOPRINT
BY 'GGSALES.SALES01.PRODUCT'
BY 'GGSALES.SALES01.REGION'
BY 'GGSALES.SALES01.ST'
BY 'GGSALES.SALES01.CITY'
BY 'GGSALES.SALES01.STCD'
BY 'GGSALES.SALES01.DATE'
HEADING
"Product ID <PCD Total Units:<TOT.UNITS Total Dollars: <TOT.DOLLARS"
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=3,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=2,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=3,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END
 
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Virtuoso
posted Hide Post
As far as I can see, both reports should be sorted BY the same field and should also be set as "coordinated" in compound composer, that way you would always get C141 summary along with C141 details in one page, C142 summary with C142 details in their own page and so on.

About your other question, I don't think you can split a SUBTOTAL/TOTAL in more than one line .. at least not voluntarily. Those "special" total lines need to be achieved with SUBFOOT which obviously requires a bit more effort in styling (and does not support inner borders).



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
My real report is more complicated. Thank you for some hints.


WebFOCUS 8.0.09
WebFOCUS 7.7.05
DBMS: Oracle 11g
all output (Excel, HTML, PDF)
 
Posts: 56 | Registered: June 17, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     <Solved>How to create a compound report with summary and detail together?

Copyright © 1996-2020 Information Builders