Focal Point
HEADING: Two items - two classes - Doesn't work

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

April 14, 2008, 06:04 PM
Francis Mariani
HEADING: Two items - two classes - Doesn't work
I have a simple fex that doesn't work as I expected it to:

TABLE FILE CAR
SUM
SALES
BY COUNTRY

HEADING
"&DATEYYMD <+0> &TOD"

ON TABLE SET STYLESHEET *
-*TYPE=HEADING, ITEM=1, COLOR=RED, $
-*TYPE=HEADING, ITEM=2, COLOR=GREEN, $
TYPE=HEADING, ITEM=1, CLASS=RED, $
TYPE=HEADING, ITEM=2, CLASS=GREEN, $
ENDSTYLE

ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
.RED {COLOR: RED;}
.GREEN {COLOR: GREEN;}
</STYLE>
</HEAD>
<BODY>
!IBI.FIL.H001;
</BODY>
</HTML>
-HTMLFORM END

The rows output by WebFOCUS look like this:

<TD CLASS='RED'>
<FONT FACE="ARIAL" SIZE=1>2008/04/14 </FONT><FONT FACE="ARIAL" SIZE=1> 17.57.37</FONT></TD>

It appears I can't apply two classes to the two items in the HEADING line, WF applies the first class mentioned in the WF stylesheet to all items in the HEADING.

Would someone please confirm if this is the same behaviour in WF 7.6?

Thanks,


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
April 14, 2008, 06:29 PM
Alan B
In 7.6 results the same.

Try HEADALIGN=INTERNAL which should give the results you want:
<TR><TD COLSPAN=2>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%">
<TR>
<TD CLASS='RED'>
2008/04/15 </TD><TD CLASS='GREEN'>
 00.26.13</TD></TR>
</TABLE></TD></TR>



Alan.
WF 7.705/8.007
April 15, 2008, 11:19 AM
Francis Mariani
Alan, thanks, that worked.


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