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.
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, 2005
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
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, 2005
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 whackyThis 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, 2003
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, 2005
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, 2003