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] Issues with placement of Report's Total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Issues with placement of Report's Total
 Login/Join
 
Gold member
posted
All,
I am having issues with placing a total at the end of a PDF report. If I don’t add page numbers, the total appear at the end of the report which is what I want. However, if I add page numbers, the total appear on a new page by itself. If I change the report’s format to HTML, then page number appears before the total even when I set the footing to appear at the bottom of the page. Does anyone have any suggestions?

Here is the code:

 
TABLE FILE CAR
PRINT 
     CAR.COMP.CAR
     CAR.ORIGIN.CNTR
BY  LOWEST CAR.ORIGIN.COUNTRY
     
ON CAR.ORIGIN.COUNTRY SUBTOTAL AS '*TOTAL'
FOOTING BOTTOM
"<TABPAGENO"
ON TABLE SUBFOOT
"Total Number of Cars <ST.CNTR"
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
-*ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = endeflt,
$
TYPE=REPORT,
     GRAPHCOLOR='GREEN',
$
TYPE=REPORT,
     OBJECT=MENU,
     COLOR='WHITE',
     HOVER-COLOR=RGB(66 70 73),
     BACKCOLOR=RGB(102 102 102),
     HOVER-BACKCOLOR=RGB(218 225 232),
     BORDER-COLOR='WHITE',
$
TYPE=REPORT,
     OBJECT=STATUS-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
TYPE=REPORT,
     OBJECT=CURRENT-ROW,
     HOVER-BACKCOLOR=RGB(218 225 232),
     BACKCOLOR=RGB(200 200 200),
$
TYPE=REPORT,
     OBJECT=CALC-AREA,
     COLOR='WHITE',
     BACKCOLOR=RGB(102 102 102),
$
ENDSTYLE
END


Thanks,

Seyed

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


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
 
Posts: 90 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Report This Post
Virtuoso
posted Hide Post
This behaviour is correct and described in the documentation. This is because you are using ON TABLE SUBFOOT.

Create a major single value sort and use that for the SUBFOOT:
DEFINE FILE CAR
DUMMY/A1 = ' ';
END

TABLE FILE CAR
PRINT 
     CAR.COMP.CAR
     CAR.ORIGIN.CNTR
BY DUMMY NOPRINT
BY  LOWEST CAR.ORIGIN.COUNTRY
     
ON CAR.ORIGIN.COUNTRY SUBTOTAL AS '*TOTAL'
FOOTING BOTTOM
"<TABPAGENO"
ON DUMMY SUBFOOT
"Total Number of Cars <ST.CNTR"
.
.
.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Gold member
posted Hide Post
Hi Alan,
Thank you very much for your input. Your solution resolves issues with my first report. However, I will be creating other reports for our customers that will have to be bursted by name which is a primary sort. I am guessing, that having a dummy primary sort will create problems in RC and bursting will fail. I just read the documentation for ReportCaster, and second by field only applies to Graphs.

Thanks again,

Seyed


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
 
Posts: 90 | Location: Oklahoma City, Oklahoma | Registered: July 01, 2010Report This Post
Guru
posted Hide Post
You could try calculating the total and append it to the data using MORE or FILEDEF (APPEND.


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by SeyedG:
I will be creating other reports for our customers that will have to be bursted by name which is a primary sort. I am guessing, that having a dummy primary sort will create problems in RC and bursting will fail.


Well, not necessarily. If you are bursting a report by "name" then I assume you want to display your TOTAL corresponding to the "name" being processed, don't you? In that case, no dummy field is needed. Having an ON NAME SUBFOOT should take care of it for you.



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
  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] Issues with placement of Report's Total

Copyright © 1996-2020 Information Builders