Simple request, works fine returning HTML and PDF, but loses styling on SEATSPER when returning EXL2K (NOTE - styling on CNT.CAR doesn't work in any form...why's that?). I've searched the postings, but cannot find this answer. It's the SEATSPER that I really care about... the others were just interesting notes.
DEFINE FILE CAR
CARTOT/I9 WITH BODYTYPE=1;
END
TABLE FILE CAR
SUM CNT.BODYTYPE
CARTOT
COMPUTE SEATSPER/D6.1=SEATS/CARTOT;
BY COUNTRY
ACROSS BODYTYPE
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,ACROSSCOLUMN=CNT.BODYTYPE,COLOR=RED,WHEN=CNT.BODYTYPE GT 1,$
TYPE=DATA,ACROSSCOLUMN=CARTOT,COLOR=RED,WHEN=CARTOT GT 1,$
TYPE=DATA,ACROSSCOLUMN=SEATSPER,COLOR=RED,WHEN=SEATSPER GT 3,$
ENDSTYLE
END
Is it a dumb error, or is Excel messing with me?
... sorry for the lousy looking first post.. and I updated my profile as well.
Thanks ScottThis message has been edited. Last edited by: zoogy55,
Prod: WebFOCUS 7.1.6 Servlet - Self Service on Solaris 8 - Apache Tomcat 5.0.28 DevStudio 7.1.6 on MS Windows XP SP2 Output: HTML, Excel 2000 and PDF
June 02, 2008, 06:14 PM
Danny-SRL
Zoogy,
It seems to me that you should not use the acrosscolumn name but its number:
DEFINE FILE CAR
CARTOT/I9 WITH BODYTYPE=1;
END
TABLE FILE CAR
SUM CNT.BODYTYPE
CARTOT
COMPUTE SEATSPER/D6.1=SEATS/CARTOT;
BY COUNTRY
ACROSS BODYTYPE
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=DATA,ACROSSCOLUMN=N1,COLOR=RED,WHEN=CNT.BODYTYPE GT 1,$
TYPE=DATA,ACROSSCOLUMN=N2,COLOR=RED,WHEN=CARTOT GT 1,$
TYPE=DATA,ACROSSCOLUMN=N3,COLOR=RED,WHEN=SEATSPER GT 3,$
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
June 04, 2008, 06:46 PM
<dksib>
Zoogy,
Please notice that even using its number for CNT.BODYTYPE the style still does not work. You have to either compute a new field like SEATSPER or create one in the define as you did with CARTOT.