Focal Point
[CLOSED] embed variables in a css footer

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

September 17, 2018, 08:17 AM
Leanne Wood
[CLOSED] embed variables in a css footer
I would like to embed &IBIC_user and &Date, and fex name/path in a style sheet.

Has anyone ever done this, and if so, can you share how it was done?

thank you in advance
Leanne Wood

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


WebFOCUS 8.2.02M, App Studio 8.2.02M
Windows 2012 Server, Excel
September 17, 2018, 03:28 PM
Waz
Not sure I understand what you are asking.

Title says CSS, content says style sheet.

Is there any reason you can't add the & Vars to your footing ?

Anyway, this example adds test to an item in an HTML report, could be any item identifiable in the report in the WebFOCUS stylesheet.

-HTMLFORM BEGIN
<style>
.MyFex {
    font-size:15px;
    color:red;
}
.MyFex:before {
    content: "&FOCFEXNAME";
}
</style>
-HTMLFORM END

TABLE FILE CAR
PRINT COUNTRY
FOOTING
" <+0> "
ON TABLE SET HTMLCSS ON
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLESHEET * 
TYPE=REPORT, CSSURL=/MyCss.css, $ 
TYPE=FOOTING, LINE=1, ITEM=1, CLASS=MyFex, $
ENDSTYLE
END



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!