Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] CSS
 Login/Join
 
<José Andrés Vargas Aguilar>
posted
¿Does any of you know how to force CSS script into a fex?

I'd need to add something like this:

.x64 { font-family:ARIAL; font-size:7pt; font-weight:bold; color:#FFFFFF; background-color:#93ACDB; text-align:center;
border-top: 1.00pt RIDGE #808080; border-bottom: NONE; border-right: 1.00pt RIDGE #808080; border-left: 1.00pt RIDGE #808080; }


Thanks!

This message has been edited. Last edited by: <José Andrés Vargas Aguilar>,
 
Report This Post
Expert
posted Hide Post
TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE HOLD AS H001 FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, CLASS= x64, $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<TITLE>WEBFOCUS REPORT</TITLE>
<style type="text/css">
.x64 { font-family:ARIAL; font-size:7pt; font-weight:bold; color:#FFFFFF; background-color:#93ACDB; text-align:center;
border-top: 1.00pt RIDGE #808080; border-bottom: NONE; border-right: 1.00pt RIDGE #808080; border-left: 1.00pt RIDGE #808080; }
</style>
</head>
<BODY>
!IBI.FIL.H001;
</BODY>
</html>
-HTMLFORM END



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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<José Andrés Vargas Aguilar>
posted
Thanks for the answer Francis.
But It doesn't work like that for my particular case because the column I need to "style" comes from a COMPUTE on an ACROSS. Similar to this:

DEFINE FILE CAR
SALESD/D10 = SALES;
END
-***************************************
TABLE FILE CAR
SUM SALESD NOPRINT
BY COUNTRY NOPRINT
SUM SALESD NOPRINT
BY COUNTRY NOPRINT
BY CAR
SUM SALESD AS 'Sales'
PCT.SALESD/D6.2 WITHIN COUNTRY WITHIN SEATS AS '%'
BY COUNTRY NOPRINT
BY CAR
ACROSS SEATS
COMPUTE XTOT_SALESD/D15 = C2; AS 'Total'
COMPUTE MYPCT/D12.2 = C2 / C1 * 100; AS '%'
-***************************************
ON COUNTRY SUBHEAD
"COUNTRY: ON COUNTRY RECOMPUTE AS 'TOTAL'
ON TABLE NOTOTAL
END

The question would be: how do you modify the style of the las two compute columns XTOT_SALESD and MYPCT ('Total' and '%') from a stylesheet?

I already tried with all the types I know and found and I only managed to affect the other areas of the report but not that one in particular.

Thanks for the help.
 
Report This Post
Virtuoso
posted Hide Post
This is a duplicate post to this one: ACROSS, COMPUTE AND STYLES. Francis provided the solution in the other post. The problem seems to be that you are missing the ending double quote (") on your SUBHEAD statement.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
You're not trying very hard.

DEFINE FILE CAR
SALESD/D10 = SALES;
END

TABLE FILE CAR
SUM SALESD NOPRINT
BY COUNTRY NOPRINT
SUM SALESD NOPRINT
BY COUNTRY NOPRINT
BY CAR
SUM SALESD AS 'SALES'
PCT.SALESD/D6.2 WITHIN COUNTRY WITHIN SEATS AS '%'
BY COUNTRY NOPRINT
BY CAR
ACROSS SEATS
COMPUTE XTOT_SALESD/D15 = C2; AS 'TOTAL'
COMPUTE MYPCT/D12.2 = C2 / C1 * 100; AS '%'

ON COUNTRY SUBHEAD
"COUNTRY: <COUNTRY"
ON COUNTRY RECOMPUTE AS 'TOTAL'
ON TABLE NOTOTAL

ON TABLE HOLD AS H001 FORMAT HTMTABLE

ON TABLE SET STYLE *
TYPE=REPORT, COLUMN=XTOT_SALESD, class=x64, $
TYPE=REPORT, COLUMN=MYPCT, class=x64, $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<html>
<head>
<TITLE>WEBFOCUS REPORT</TITLE>
<style type="text/css">
.x64 { font-family:ARIAL; font-size:7pt; font-weight:bold; color:#FFFFFF; background-color:#93ACDB; text-align:center;
border-top: 1.00pt RIDGE #808080; border-bottom: NONE; border-right: 1.00pt RIDGE #808080; border-left: 1.00pt RIDGE #808080; }
</style>
</head>
<BODY>
!IBI.FIL.H001;
</BODY>
</html>
-HTMLFORM END


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<José Andrés Vargas Aguilar>
posted
Actually this is only an example code because I considered the actual code too big to be posted.

Also, neither solutions worked. Here is a part of the actual code. What I need to "style" are the labels from the computes below the across ('Totales', 'Concent.', etc):


-* *******************************************


TABLE FILE SQLOUT

SUM
MONTOS NOPRINT
CONMORA NOPRINT
MORA30 NOPRINT
CANTIDADES NOPRINT
CANTMORA NOPRINT
CANT30 NOPRINT

SUM
MONTOS NOPRINT
CONMORA NOPRINT
MORA30 NOPRINT
CANTIDADES NOPRINT
CANTMORA NOPRINT
CANT30 NOPRINT

BY &wf_agrupa

SUM
MONTOS AS 'Monto'
CONMORA NOPRINT
MORA30 NOPRINT
CANTIDADES AS 'Cant.'
CANTMORA NOPRINT
CANT30 NOPRINT

BY &wf_agrupa

ACROSS MORAMIN NOPRINT
ACROSS DIA AS 'Dias de Mora'
COMPUTE TVAL/D20.2 = C7; AS 'TOTALES'
COMPUTE TCAN/D20 = C10; AS 'TEST'
COMPUTE PVAL/D20.2% = 100*C7/C1; AS 'CONCENT.'
COMPUTE PCAN/D20.2% = 100*C10/C4; AS ''
COMPUTE CONM/D20.2% = 100*C8/C2; AS 'MORA'
COMPUTE CANM/D20.2% = 100*C11/C5; AS ''
COMPUTE MOR3/D20.2% = 100*C9/C3; AS 'MORA > 30'
COMPUTE CAN3/D20.2% = 100*C12/C6; AS ''

ON TABLE COLUMN-TOTAL

-INCLUDE bkw54/bkwstyleanalisis.fex


-* *******************************************


-* Amongst other stuff I have this on bkw54/bkwstyleanalisis.fex


-* *******************************************


TYPE=REPORT, COLUMN=TCAN, COLOR=RED, $

TYPE=FREETEXT, STYLE=BOLD, SIZE=12, COLOR=RED, COLUMN=TCAN, $

TYPE=FREETEXT, STYLE=BOLD, SIZE=12, COLOR=RED, $


-* *******************************************

FYI, I initially thought this labels would be ACROSSTITLE or ACROSSVALUE but they dont get affected by the ACROSSTITLE and ACROSSVALUE definitions I already have.

I used the -HTMLFORM advice Francis gave me but it didn't do the job either.

Thanks for all the help, I really appreciate it!
 
Report This Post
<José Andrés Vargas Aguilar>
posted
I'm gonna continue this on a newer thread Here.

Thanks!
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders