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 and FML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional Styling and FML
 Login/Join
 
Platinum Member
posted
I need some help with conditional styling in FML. I have a report set up for which one of the RECAP lines is:

RECAP TOTS(1,12)= IF R00 GT 0 THEN R00 ELSE (L01+L02+L03+L04+L06+L07+L08+L09+L10+L11+RXX);

The values in the fields used in the RECAP are in the format D12.3. I use conditional styling as below on this field and the background colour changes to Red, Orange or Green depending on the value as I want:

  TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=RED, WHEN=C2 GT C1,$
TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=YELLOW, WHEN=C2 GT 2600,$
TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=LIME,$

However I want the field to be displayed as an integer, so I changed my code to this:

RECAP TOTS(1,12)/I9= IF R00 GT 0 THEN R00 ELSE (L01+L02+L03+L04+L06+L07+L08+L09+L10+L11+RXX);

which displays correctly, but now my conditional styling won't work. (The background colour is showning as lime when due to the value of the cell it should be red).

I've tried the manual and searching the forum, but I can't find any reason as to why this won't work. I don't want to change my column to an integer before summing, as the totals are then out due to the decimal places being lost.

Anyone know where I'm going wrong?


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Virtuoso
posted Hide Post
Maybe because you gave a format to your RECAP, it changes the internal numbering.
So, how about changing your column to D9? The decimals won't be lost and the totals should be correct.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
I've changed the format of the field in a define before using it to a D9 and it does work.

Thanks


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Virtuoso
posted Hide Post
to make this independent from the format you may ad a label code to the recap line and then refer in the format line to that label.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 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     Conditional Styling and FML

Copyright © 1996-2020 Information Builders