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] Grandtotal questions

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Grandtotal questions
 Login/Join
 
Guru
posted
Using the following FEX:

  
TABLE FILE CAR
SUM 
     CAR
     BODYTYPE
     LENGTH
     WIDTH
     FUEL_CAP
     WEIGHT
     WEIGHT
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
	 GRID=ON,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END

1. Is there a way to get the 'Total' label on the same line as the totals even though there are no BY's?
2. Assuming the answer to the first question is 'no', is there way to tell the 'Total' label line to span a few columns?  I couldn't seem to find a way to address this line.

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


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report This Post
Virtuoso
posted Hide Post
if you will do a search on TOTAL SAME LINE. you will get many answers on that question. You can try this ON TABLE SUBFOOT
ON TABLE SUBFOOT
"TOTAL <ST.WEIGHT"  

but look at some of the answers


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
You've hit on two weaknesses of the code. Both have been discussed here quite a bit.

1. Someone may find a solution involving a dummy column - I can't seem to get it to work.
2. There appears to be no styling tag for the "Total" text portion of a subtotal or column total.


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
Guru
posted Hide Post
Lovely!


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report This Post
Virtuoso
posted Hide Post
Would this do the trick for you?

  
-* File channys3.fex
DEFINE FILE CAR
SP/A1=' ';
END
TABLE FILE CAR
SUM
     CAR
     BODYTYPE
     LENGTH
     WIDTH
     FUEL_CAP
     WEIGHT
     WEIGHT
BY   SP AS ' ' 

ON TABLE COLUMN-TOTAL AS '<SPAN STYLE="COLOR:RED;">TOTAL</SPAN>'
ON TABLE PCHOLD FORMAT HTML

ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
	 GRID=ON,
$
TYPE=REPORT,
     FONT='TIMES NEW ROMAN',
     SIZE=10,
$
ENDSTYLE
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Guru
posted Hide Post
Nice idea. However, then I get the extra blank column on top - I'm not sure which I'd prefer (though considering the border problems you have with grandtotal on two rows this just may be a better way).

Thanks!


Release: WebFOCUS 7.6.8
OS: Windows
Output formats: HTML, PDF, Excel, csv
 
Posts: 256 | Registered: July 21, 2008Report 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] Grandtotal questions

Copyright © 1996-2020 Information Builders