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     Shortening the Subtotal Bar

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Shortening the Subtotal Bar
 Login/Join
 
Gold member
posted
Hi,

I was creating a report and I noticed when I made used a subtotal, it would create it perfectly in the GUI.

But when I coded it using the
"ON FIELD_NAME SUBTOTAL AS 'Description' "

It would create the background colors for all the columns and not just the columns it has totals for.

Is there a way to create it so that the Wording and background color only starts on the column that it was made "on" and not previous columns?
 
Posts: 68 | Registered: March 15, 2006Report This Post
Platinum Member
posted Hide Post
Ben,

Does this answer your question:

TABLE FILE CAR
PRINT *
BY COUNTRY
ON COUNTRY SUBTOTAL AS 'Seats for: '

ON TABLE SET STYLE *

TYPE=SUBTOTAL, COLUMN=SEATS, BACKCOLOR=RED, $

ENDSTYLE
END

Regards,
Sean

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


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Guru
posted Hide Post
Is this what you are trying to do?
TABLE FILE CAR
SUM
     RETAIL_COST
     DEALER_COST
BY COUNTRY
BY CAR

ON COUNTRY SUBTOTAL AS 'Description:'
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,SQUEEZE=ON,ORIENTATION=PORTRAIT,$
TYPE=REPORT,GRID=OFF,FONT='TIMES NEW ROMAN',SIZE=10,COLOR='BLACK',BACKCOLOR='NONE',STYLE=NORMAL,$
TYPE=SUBTOTAL,BY=COUNTRY,COLUMN=P3,COLOR='RED',BACKCOLOR='BLACK',$
ENDSTYLE
END
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
I think you guys are on the right track, but the text should start on the column that it is "on".

Report Columns:
COUNTRY COSTS PROFIT

If I do a subtotal on Costs, I want the Subtotal title to start under Costs, and not under Country.
 
Posts: 68 | Registered: March 15, 2006Report This Post
Expert
posted Hide Post
If it does what you want in the GUI, then why don't you look at the source code generated by the GUI and do the same?


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
Is this what your are trying to do:
TABLE FILE CAR
SUM
     RETAIL_COST AS 'Retail,Cost'
     DEALER_COST AS 'Dealer,Cost'
     SALES AS 'Sales'
BY COUNTRY AS 'Country'
BY CAR AS 'Car'
BY BODYTYPE AS 'Body'

ON CAR SUBFOOT
" <+0>Description:<CAR<+0><ST.DEALER_COST"
" "
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,SQUEEZE=ON,ORIENTATION=PORTRAIT,$
TYPE=REPORT,FONT='ARIAL',SIZE=8,COLOR='BLACK',BACKCOLOR='NONE',STYLE=NORMAL,RIGHTGAP=0.00,LEFTGAP=0.00,$
TYPE=REPORT,COLUMN=P1 ,SQUEEZE=1.00,$
TYPE=REPORT,COLUMN=P2 ,SQUEEZE=1.00,$
TYPE=REPORT,COLUMN=P3 ,SQUEEZE=1.00,$
TYPE=REPORT,COLUMN=P4 ,SQUEEZE=0.75,$
TYPE=REPORT,COLUMN=P5 ,SQUEEZE=0.75,$
TYPE=REPORT,COLUMN=P6 ,SQUEEZE=0.75,$
TYPE=SUBFOOT,ITEM=1 ,JUSTIFY=LEFT  ,WIDTH=1.00,$
TYPE=SUBFOOT,ITEM=2 ,JUSTIFY=LEFT  ,WIDTH=0.75,$
TYPE=SUBFOOT,ITEM=3 ,JUSTIFY=LEFT  ,WIDTH=1.00,$
TYPE=SUBFOOT,ITEM=4 ,JUSTIFY=RIGHT ,WIDTH=1.75,STYLE=BOLD,COLOR='RED',$
ENDSTYLE
END
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
Thanks, that was what I was looking for.
 
Posts: 68 | Registered: March 15, 2006Report 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     Shortening the Subtotal Bar

Copyright © 1996-2020 Information Builders