Focal Point
[CLOSED] Two Reports in One FEX--Style Sheet Problem

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

December 28, 2006, 08:27 AM
kalyanswarna
[CLOSED] Two Reports in One FEX--Style Sheet Problem
Hi All,

i have two reports in one fex from same file, the two reports having the same fileds(columns) except one BY field. the desired output is in HTML format.

my code is like this

TABLE FILE CAR
PRINT A
B
BY C
ON TABLE STYLE *
Style Sheet
ENDSTYLE
END
TABLE FILE CAR
PRINT A
B
ON TABLE STYLE *
Style Sheet
ENDSTYLE
END


HERE THE PROBLEM IS the two style sheets are mixing and giving some bad results, how can i eliminate this mixing of style sheets.
give me some suggestion to combine these two reports.
i tried with set compund but there is no use.

Thanks,
Kalyan

This message has been edited. Last edited by: FP Mod Chuck,


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
December 28, 2006, 08:44 AM
Pete
K.,

Does it help to hold each report in a HTMtable

and then to show it

-HTMLFORM BEGIN
!IBI.FIL.REPORT1;
!IBI.FIL.REPORT2;
!IBI.FIL.REPORT3;
-HTMLFORM END


Just thinking....


Hope it helps
Peter


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

December 28, 2006, 08:46 AM
kalyanswarna
Hi Pete, Thanks for your Sugestion, but i do not want to put in !IBI.FIL....
my idea is through fex


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
December 28, 2006, 08:50 AM
Pete
K.,

its still in a fex

TABLE FILE CAR
"REPORT 1"
PRINT CAR MODEL BODYTYPE BY COUNTRY
ON TABLE HOLD FORMAT HTMTABLE AS REPORT1
ON TABLE SET STYLE *
TYPE=DATA,STYLE=BOLD,COLOR=RED,$
ENDSTYLE
END
TABLE FILE CAR
"REPORT 2"
PRINT CAR MODEL COUNTRY BY BODYTYPE
ON TABLE HOLD FORMAT HTMTABLE AS REPORT2
ON TABLE SET STYLE *
TYPE=DATA,STYLE=BOLD,COLOR=BLUE,$
ENDSTYLE
END
TABLE FILE CAR
"REPORT 3"
PRINT MODEL BODYTYPE COUNTRY BY CAR
ON TABLE HOLD FORMAT HTMTABLE AS REPORT3
ON TABLE SET STYLE *
TYPE=DATA,STYLE=BOLD,COLOR=GREEN,$
ENDSTYLE
END
-HTMLFORM BEGIN
!IBI.FIL.REPORT1;
!IBI.FIL.REPORT2;
!IBI.FIL.REPORT3;
-HTMLFORM END


or am i missing something

P.


D: WF 7.6.2 P. : WF 7.6.2 on W2003
------------------------------------------------------------------
I see myself as an intelligent, sensitive human, with the soul of a clown which forces me to blow it at the most important moments.

-Jim Morrison-

December 28, 2006, 08:57 AM
FrankDutch
You might also use a dummy BY (an empty field) in the second part, so the layout of both reports are the same.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

December 28, 2006, 09:51 AM
kalyanswarna
Thanks a lot Pete, it's working Fine.


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
May 13, 2019, 03:37 PM
John_Edwards
On behalf of the preceding 12 years, I'd like to thank Pete again. I had one report as an HTML, one as an HTMTABLE. The HTMTABLE styling bled into the HTML table, making both of them HTMTABLE fixed it.



May 13, 2019, 04:27 PM
Doug
The bottom line is that WebFOCUS code is Interpreted and, thus, the last items, including TYPE=xyz...' in stylesheets, override the previous items.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
May 13, 2019, 09:18 PM
John_Edwards
This is the style lines from one report affecting the style lines from another. This is the result of both being rendered on the same web page, and the output css lines using the same names. In theory they shouldn't be linked, but they are.

Putting both reports into an independent htmtable instead of two bodies of html code results in a separation of their styling.