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 Formating for Dynamic Value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Conditional Formating for Dynamic Value
 Login/Join
 
Member
posted
Has anyone been able to apply conditional formating for a dynamic value?

I know you can do:
DEFMACRO=COND0001,
MACTYPE=RULE,
WHEN=N5 EQ N3, or you can use WHEN N5 EQ 'Totals'

However I have a dynamic value for a Team Name plus a constant of "Totals". I've tried
DEFMACRO=COND0001,
MACTYPE=RULE,
WHEN=N5 EQ (N3 + ' Totals')
and
WHEN=N5 EQ (team_name + ' Totals') -*team_name is the original column name

and other variations with the ticks and quotes and parentheses.

Anyone have any ideas?

Thanks,
Jason


Webfocus 7.1
 
Posts: 11 | Registered: November 18, 2005Report This Post
Virtuoso
posted Hide Post
The manual is clear on this point, the value on the right of the operand must be a constant or field in the report, and functions (e.g. concateneting a field and a constant) cannot be used.

The best approach is to use a DEFINE or COMPUTE in your report, with the NOPRINT option, and use that within the WHEN clause.

e.g.
.
.
COMPUTE CHECK/A1=IF field1 EQ field2 | 'constant' THEN 'Y' ELSE 'N'; NOPRINT
.
.
WHEN=CHECK EQ 'Y',
.
.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Nice work around. I didn't even know that there was a concatenate function in WF. Makes total sense...after you showed me!

Thanks for the help.


Webfocus 7.1
 
Posts: 11 | Registered: November 18, 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     Conditional Formating for Dynamic Value

Copyright © 1996-2020 Information Builders