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     style sheet ?: data in row-total

Read-Only Read-Only Topic
Go
Search
Notify
Tools
style sheet ?: data in row-total
 Login/Join
 
Expert
posted
anyone know how to address the data column of a row-total within the stylesheet?
(not by specific column reference)
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<WFUser>
posted
Without a column reference you need to do it in 2 passes. This won't work with ACROSS since the row total field will have the same name as the verb object.

TABLE FILE CAR
PRINT RCOST DCOST
BY COUNTRY
ROW-TOTAL
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT *
ON TABLE SET STYLE *
TYPE=DATA,COLUMN=TOTAL,BACKCOLOR='RED',$
ENDSTYLE
END
 
Report This Post
Expert
posted Hide Post
thanks wf, that's what i thought.
appreciate the response.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Pietro De Santis>
posted
The correct answer is:

TABLE FILE CAR
PRINT RCOST DCOST
BY COUNTRY
ROW-TOTAL
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=ROWTOTAL, COLOR=RED,$
ENDSTYLE
END
 
Report This Post
Expert
posted Hide Post
Pietro, how would i address just one of the row-total columns?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Pietro De Santis>
posted
Susannah, wouldn't there be only one row-total column?
 
Report This Post
Expert
posted Hide Post
no, each verb object gets its own.
SUM APPLES ORANGES ACROSS STATE AND ROW-TOTAL BY SOMETHING
gives me a row total for apples and one for oranges, so i'm trying to conditionally style the APPLES, say.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Pietro De Santis>
posted
TABLE FILE CAR
SUM
RCOST AS 'RETAIL'
DCOST AS 'DEALER'
ACROSS COUNTRY
BY SEATS
ROW-TOTAL
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=ROWTOTAL(1), COLOR=GREEN, $
TYPE=DATA, COLUMN=ROWTOTAL(DCOST), COLOR=BLUE, $
ENDSTYLE
END
quote:

When used with ACROSS and multiple display commands, ROWTOTAL generates multiple total columns. Use ROWTOTAL(n) to select a particular total column. Use ROWTOTAL(field) to select the
row total column for a particular field.
Use ROWTOTAL(*) to select all row total columns in the report.
 
Report This Post
Expert
posted Hide Post
bless your heart. thanks!
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Pietro De Santis>
posted
You are most welcome.
 
Report 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     style sheet ?: data in row-total

Copyright © 1996-2020 Information Builders