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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Workaround] WebFOCUS Technique - Anchoring Column Titles - Under IE8.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Workaround] WebFOCUS Technique - Anchoring Column Titles - Under IE8.
 Login/Join
 
Master
posted
I have downloaded the code from the following WebFOCUS Technique:
https://techsupport.informatio...wbf/wbf_tcn_130.html

The code from the technique looks like this:
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
 
Posts: 822 | Registered: April 23, 2003Report This Post
Master
posted Hide Post
Add this meta tag within HEAD tag.

<HEAD>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />


Also include this set lines to avoid titles getting repeated.
SET LINES=9999

Hope this helps.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Master
posted Hide Post
Thank you, Ram!

Adding the meta-tag, telling IE8 to display the page like it did in IE7, works.
 
Posts: 822 | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
Hi everybody,

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.

Cheers Linne


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
Master
posted Hide Post
Hi Linne,

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,
Dave

This message has been edited. Last edited by: David Briars,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Gold member
posted Hide Post
Hi Dave,

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 Smiler

Thanks and regards
Linne


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
Virtuoso
posted Hide Post
My ears and fingers are also anxious for news ...



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
Interesting ... this just came up and seems to be related with what David is trying. Would it work without the IE=EmulateIE7 workaround?



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Gold member
posted Hide Post
Hi again,

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. Frowner


WebFOCUS 7.7.03
 
Posts: 67 | Registered: January 05, 2011Report This Post
Virtuoso
posted Hide Post
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 Wink ) so this is something I cannot rely on for our company's projects.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Workaround] WebFOCUS Technique - Anchoring Column Titles - Under IE8.

Copyright © 1996-2020 Information Builders