Focal Point
[SOLVED] Problem whit style macro

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2397097626

December 03, 2012, 07:27 AM
expertomad
[SOLVED] Problem whit style macro
Hi .
I have problems whit my style in report.

This is my condition , and i want add other conditiion but I don t want other macro more :

DEFMACRO=COND0006,
MACTYPE=RULE,
WHEN=N17 EQ 2323 AND WHEN=N18 GE 1 ,

$
Thi give me mistake ,
Somebody can help me please.

This message has been edited. Last edited by: Kerry,
December 03, 2012, 09:53 AM
Francis Mariani
You cannot have more than one WHEN statement, and the WHEN statement must be very simple - only one condition.

Creating Reports With WebFOCUS Language > Controlling Report Formatting > Conditionally Formatting, Displaying, and Linking in a StyleSheet

Try creating a temporary column (COMPUTE) that contains your compound expression and refer to this column in the stylesheet.

COMPUTE FLAG1/A1 = IF N17 EQ 2323 AND N18 GE 1 THEN 'Y' ELSE 'N'; NOPRINT



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 03, 2012, 10:41 AM
expertomad
The solutuion is perfect , thank you.
Sorry my english no is good.
You are the chief jeje
December 03, 2012, 10:48 AM
Francis Mariani
Now I know there's an "Hispanic 'LOL'" Smiler


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server