IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Conditional Formating for Dynamic Value
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  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, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
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.6.5, PMF 5.1, MRE,RA,RG, etc... Win2003(8xQuad)/IIS/Tomcat with SSL and AD security.
 
Posts: 848 | Location: Portugal | Registered: February 07, 2007Reply With QuoteEdit or Delete MessageReport 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, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Conditional Formating for Dynamic Value

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.