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.
APP PREPENDPATH IBISAMP
-*
-* File empscroll.fex
TABLE FILE GGSALES
SUM
'GGSALES.SALES01.UNITS'
'GGSALES.SALES01.DOLLARS'
BY 'GGSALES.SALES01.CITY'
BY 'GGSALES.SALES01.PRODUCT'
ON TABLE SET PAGE OFF
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE COLUMN-TOTAL AS 'TOTAL'
ON TABLE HOLD AS MYREPORT FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=14,
COLOR='BLACK',
BACKCOLOR='NONE',
STYLE=NORMAL,
$
TYPE=TITLE,
CLASS=anchor titlesty,
$
TYPE=GRANDTOTAL,
CLASS=anchor totalsty,
$
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<STYLE TYPE="text/css">
.contstyle
{
border: none;
height: 200px;
overflow: auto;
}
.anchor
{
position: relative;
}
.titlesty
{
font-size: 16pt;
font-weight: bold;
top: -30px;
}
.totalsty
{
font-size: 16pt;
font-weight: bold;
top: -2830px;
}
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="contstyle">
!IBI.FIL.MYREPORT;
</DIV>
</BODY>
</HTML>
-HTMLFORM END
When I run the code, and view report in Internet Explorer 8, the column titles and total line are not anchored above and below the report. Instead they are 'merged' within the report.
When I run the report out to IE8, with Compatibility Mode turned on, the column titles and totals are anchored, as described and shown in the article.
Does anyone know what amendments are necessary so that the example code works in IE8, without having to turn on Compatibility Mode?This message has been edited. Last edited by: David Briars,
Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
while the tag Ram proposed obviously works, it is more a workaround than a real solution:
Switching IE8 to IE7 compat mode just changes the rendering engine of the browser back to an engine based on IE7 - instead of the more W3C standard conform IE8 engine. I do not suppose it is a good idea to sell this as a solution for eternity. You might face the same problems again when switching to IE9 or higher or to a different browsers.
The workaround might be fine for now, but if you consider a long-term solution I would opt for a solution that does not take advantage of the IE7 inaccuracies.
What about the HFREEZE (for TYPE=REPORT)attribute from WF? It is not that comfortable as one might wish but it actually separates titles etc. in the html dom structure from the data. Thus giving you more freedom to style them.
You are correct, adding a meta-tag is a workaround, not a solution.
Accordingly, I have changed the posts tag, from '[Solution]' to '[Workaround]'.
To give you some background: I am looking at the published 'anchoring report components' online article, in terms some testing/prototyping I am doing.
The meta-tag addition will allow me to continue to test the technique.
My next step is to take a look at amending the CSS, so that the technique is compatible with IE8/standards.
While we have developed reports that use the HFREEZE WebFOCUS StyleSheet attribute to freeze report sections, we are currently prototyping/testing using CSS directly.
Regards, DaveThis message has been edited. Last edited by: David Briars,
thanks for the Info. If you find an improved CSS styling solution to the problem, that would be in fact a very useful information and technique.
As I mentioned before, I am also not quite satisfied with the HFREEZE solution either so if you find a CSS based trick to create freezed sections - !and I really hope you do! - please keep us all posted
I don't believe the new thread will help. The freeze is based on an IE specific extension to CSS called "CSS expressions" and this was abandonned for IE8 and higher (see here). So you will be running into the same problems for all browsers except IE7 and below.
Thanks linnex for the document about CSS expressions and their being deprecated as of IE 8. I'm all for compliance to standards (though may become quite flexible under enough pressure ) so this is something I cannot rely on for our company's projects.