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     Conditional Styling in Sub Totals (or Totals)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional Styling in Sub Totals (or Totals)
 Login/Join
 
Member
posted
G'Day All,

A question....how do I apply conditional styling to selected columns in a subtotal (or a total for that matter)?

This might be clearer if I explain. I'm creating a sales report showing Actual Number of Sales, Budget Number of Sales, Variance to Budget (on No of Sales), Actual Value of Sales, Budget Value of Sales and Variance to Budget (on Value). The report shows each month for the year to date.

The two variance columns are conditionally styled to be red if they're behind budget, otherwise green (green for good, red for bad). To show the position for the year to date I'm applying a sub-total on a non-relevant, invisible field (totals have even less format options). The sub-total shows each of the six result columns.

The WF436 GUI in Desktop Developer allows conditional styling to be applied the subtotal but it's applied to all the subtotalled columns. Ideally I'd like to apply to conditional styling to just the two variance columns, leaving the year to date actuals and budgets in normal text.

Any advice would be appreciated.

Cheers

Andrew W
 
Posts: 27 | Location: Sydney, Australia | Registered: May 27, 2003Report This Post
Expert
posted Hide Post
Andrew , if you're willing to get out of the GUI, (i myself work in a gui-free zone)
then in the stylesheet you say

ON TABLE SET STYLE *
..
TYPE=SUBTOTAL,COLUMN=VARIANCE,STYLE=BOLD,COLOR=RED,$
TYPE=SUBTOTAL,COLUMN=MONEY,STYLE=BOLD,COLOR=GREEN,$
TYPE=GRANDTOTAL, same idea.
ENDSTYLE
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Member
posted Hide Post
Thanks for the reply.

How does this solution account for conditional styling (ie positive = bold green, negative = bold red)? It seems that the solution is just styling the columns differently without accounting for the values.

Thanks in advance.

Cheers

Andrew W
 
Posts: 27 | Location: Sydney, Australia | Registered: May 27, 2003Report This Post
Member
posted Hide Post
Try this:

TYPE=SUBTOTAL, STYLE=BOLD, COLOR=GREEN, WHEN=[FIELD] GT 0;

TYPE =SUBTOTAL, STYLE=BOLD, COLOR= RED, WHEN=[FIELD] LT 0;

Good Luck.
 
Posts: 25 | Location: Kingwood, Tx | Registered: May 06, 2003Report 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     Conditional Styling in Sub Totals (or Totals)

Copyright © 1996-2020 Information Builders