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     Accessing 'TOTAL' Text in GRANDTOTAL Style

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Accessing 'TOTAL' Text in GRANDTOTAL Style
 Login/Join
 
Platinum Member
posted
How can I access the TOTAL text that appears from an ON TABLE SUB-TOTAL command, within the style section?

In the following CAR example, I can set the color to orange for the SEATS column. I also know how to set the color for the entire grand total row. But I can't figure out how to access the TOTAL cell independently:

TABLE FILE CAR
PRINT 
CAR
SEATS
BY COUNTRY

WHERE RECORDLIMIT EQ 7

ON TABLE SUB-TOTAL

ON TABLE SET STYLE *

TYPE=GRANDTOTAL, COLUMN=SEATS, COLOR=ORANGE, $

ENDSTYLE
END


Thanks for your help!
Sean


------------------------------------------------------------------------
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
Sean - Try this code:
TABLE FILE CAR
PRINT
CAR
SEATS
BY COUNTRY
WHERE RECORDLIMIT EQ 10
ON TABLE SUMMARIZE AS 'Total'
ON TABLE SET STYLE *
UNITS=IN,
PAGESIZE='Letter',
LEFTMARGIN=0.250000,
RIGHTMARGIN=0.250000,
TOPMARGIN=0.250000,
BOTTOMMARGIN=0.250000,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=GRANDTOTAL,
COLOR='ORANGE',
$
ENDSTYLE
END


Sandy Kadish
Dev: 8.2.04- PostgreSQL
Test: 8.2.04 - PostgreSQL
Prod: 8.2.04 - PostgreSQL
 
Posts: 238 | Location: Atlanta, GA/Rehovot, Israel | Registered: May 06, 2003Report This Post
Platinum Member
posted Hide Post
Sandy,

Thanks for the response.

I'm hoping that there is some variation that will style just the 'TOTAL' cell, independent of all the other cells (columns). I can't find anything that will do that, short of doing what you have shown, then undoing the styling for the totaled columns.

Is there any way to do that?

Thanks,
Sean


------------------------------------------------------------------------
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
Expert
posted Hide Post
TABLE FILE CAR
PRINT
CAR
SEATS
BY COUNTRY
ON COUNTRY SUBTOTAL
WHERE RECORDLIMIT EQ 7

ON TABLE SUMMARIZE

ON TABLE SET STYLE *
TYPE=SUBTOTAL,COLOR=BLACK,STYLE=BOLD,$
TYPE=SUBTOTAL,COLUMN=SEATS,COLOR=ORANGE,$

ENDSTYLE
END

works...
or...

ON TABLE SUMMARIZE

ON TABLE SET STYLE *
TYPE=GRANDTOTAL,COLOR=BLACK,STYLE=BOLD,$
TYPE=GRANDTOTAL,COLUMN=SEATS,COLOR=ORANGE,$
works.
just not the ON TABLE SUBTOTAL
probably because subtotalling at the end of an entire table is kind of whacky

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Seems you can change a Title, Acrosstitle...but not this. Surely there's a trick.


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
Susannah was on the right track

TYPE=GRANDTOTAL,COLOR=ORANGE,STYLE=BOLD,$
TYPE=GRANDTOTAL,COLUMN=SEATS,COLOR=BLACK,$


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Susannah,

Thanks for your response.

That's not quite what I'm looking for though.

I can get the result as follows, but I want to be able to access the TOTAL text directly, and not indirectly as in the code shown below:

TABLE FILE CAR
PRINT 
CAR
SEATS
BY COUNTRY

WHERE RECORDLIMIT EQ 7

ON TABLE SUB-TOTAL

ON TABLE SET STYLE *

TYPE=GRANDTOTAL, COLOR=ORANGE, $

TYPE=GRANDTOTAL, COLUMN=SEATS, COLOR=BLACK, $

ENDSTYLE
END


Prairie,

Yeah, I agree there must be some way, but perhaps I have found a hole in the styling options.

Thanks for the feedback guys!
Sean


------------------------------------------------------------------------
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
Platinum Member
posted Hide Post
Prarie,

We were posting around the same time....I see you found my workaround. Smiler

If anybody knows a more direct method though, I'd appreciate seeing it!

Thanks,
Sean


------------------------------------------------------------------------
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
Expert
posted Hide Post
Smith, the method we've given you does address the TOTAL text directly.
Its just that you have to do it by addresseing the entire line
and then...
back out each individual summed element and set its color back to something ordinary...leaving only the TOTAL text remaining in the style globally applied to the total line.
Take out the ON TABLE SUB-TOTAL... because that's a puzzling concept.. We total or summarize at the end of an entire table, we sub-total or subtotal on BY field breaks.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Susannah,

I guess what I was looking for was something like
TYPE=GRANDTOTAL, COLUMN=TOTAL, COLOR=ORANGE, $

but as you say, I have to access the entire row (which includes the TOTAL text and whatever column totals you may have), then subtract from that.

I was just hoping that there was something that would address the 'TOTAL' column by itself.

Thanks,
Sean


------------------------------------------------------------------------
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
Platinum Member
posted Hide Post
Susannah,

Point noted on the SUB-TOTAL, I will revise to SUMMARIZE.

Thanks,
Sean


------------------------------------------------------------------------
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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Accessing 'TOTAL' Text in GRANDTOTAL Style

Copyright © 1996-2020 Information Builders