Focal Point
[CASE-OPENED] HTML Freeze Heading/Column Titles

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

November 14, 2012, 08:04 AM
MAdams1
[CASE-OPENED] HTML Freeze Heading/Column Titles
Okay, I've searched FP and found some posts on this issue. I read them all and followed the IBI directions for freezing headings. I went to Options/Features and chose Top. Code:
 TYPE=REPORT,
     HFREEZE=TOP,
     SCROLLHEIGHT=5.000000,
$ 


I get this error:
 Message: 'this.freezeTableSections.length' is null or not an object
Line: 50
Char: 9
Code: 0
URI: http://.../ib.../js/ibihfreezeVer.js
 


So I thought maybe the type needed to be HEADING so I changed the code to;
 TYPE=HEADING,
     HFREEZE=TOP,
     SCROLLHEIGHT=5.000000,
$ 


Well that didn't work, got this error message;
 (FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 681: HFREEZE=TOP

 


One of the posts advised using this set command;
SET WEBVIEWER ON 

Again, didn't work. I got this error message;
 (FOC209) THE DATA VALUE EXCEEDS ITS LENGTH SPECIFICATION: WEBVIEWER ON
 (FOC3202) BAD VALUE IN STYLESHEET FILE AT LINE 681: HFREEZE=TOP
 


Is it really this difficult to freeze the heading in HTML output??

Anyone have any idea what I'm doing wrong or have something that worked for you?

Thanks
Michelle

This message has been edited. Last edited by: MAdams1,


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 14, 2012, 08:08 AM
MAdams1
This is all being done in Dev Studio


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 14, 2012, 01:49 PM
Tom Flynn
Works as expected for me, 7.7.03M on 7.7.04 Server:
  
TABLE FILE CAR
PRINT CAR COUNTRY BODYTYPE FUEL DCOST RCOST 
ON TABLE SUMMARIZE
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, RIGHTMARGIN=0.250000,
    TOPMARGIN=0.250000, BOTTOMMARGIN=0.250000, SQUEEZE=ON,
    ORIENTATION=PORTRAIT, $
TYPE=TITLE, FONT='TIMES NEW ROMAN', SIZE=9, COLOR=WHITE, BACKCOLOR=BLACK,
    STYLE=BOLD, BORDER=1, $
TYPE=REPORT,
     HFREEZE=TOP,
     SCROLLHEIGHT=3.000000,
     SIZE=9,
$ 
ENDSTYLE
END



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 14, 2012, 02:33 PM
MAdams1
Tom, thank you for responding.
I pasted your code into the command console and it didn't work. I got the same error message. Then I noticed your code didn't have
 ON TABLE SET HTMLCSS ON 
. So I added that and it still didn't work. We did an upgrade to 7.7.04 and to server 7.7.04 recently, however, had so many problems we went back to 7.7.03, I'm not sure if the server was also reverted back to 7.7.03. My guess is that it was since it works for you on 7.7.04 and not me. Your response has helped point me in the right direction. Thank You.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 07:25 AM
Jeff_f
Tom's code worked for me and we are on 7.7.03 and 7.7.03 Hotfix 19.

It worked with and without ON TABLE SET HTMLCSS ON.
November 15, 2012, 07:47 AM
MAdams1
Thank you Jeff,
So HF 19, the last HF we did was 6. This may be our problem.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 08:40 AM
MAdams1
After my colleague and I did some testing. We discovered that the GUI puts in these two SETS;
 ON TABLE SET WEBVIEWER ON
ON TABLE SET WEBVIEWTARG OFF 

and when I add them to Tom's car file sample, it works.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 08:41 AM
Tom Flynn
BTW, HotFix 6 is the latest...
7703 HotFix


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 15, 2012, 08:49 AM
MAdams1
@Tom, I hadn't heard of 19 and thought we were up to date.

I put the SETS into my orig code and get a different error now. I'm wondering if the fact that I have subheads also is confusing the HFREEZE.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 08:52 AM
Jeff_f
Oh... I was looking at the message "WebFOCUS Version 7.7.03 compiled and linked on Thu Sep 8 14:55:52 EDT 2011 (Gen branch7703_hotfix:19)." I did not realize 19 was the gen number not the hotfix number. So we are on hotfix 2. But glad you fix it anyway.
November 15, 2012, 12:46 PM
Francis Mariani
I have HFREEZE working and never had to fiddle with it. Hotfix 6.

Never had to use

ON TABLE SET WEBVIEWER ON
ON TABLE SET WEBVIEWTARG OFF
.


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
November 15, 2012, 12:54 PM
MAdams1
I started a new fex on the car file and used only the GUI and it did not generate the
two sets, it also did not work. I have uploaded my car file example to the case I have
opened. Most days I think my computer is possessed! Thanks for the help.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 01:04 PM
Tom Flynn
Again, using a Subhead works for me. You probably have other conflicts in your styling, just a guess.
We don't use the GUI, and, ditto Francis' comment... Glad you opened a case as it seems something else is wrong...

This works for me:
  
TABLE FILE CAR
PRINT CAR COUNTRY BODYTYPE FUEL DCOST RCOST
  BY COUNTRY NOPRINT
ON COUNTRY SUBHEAD
"This is a Subheading"
" "
ON TABLE SUMMARIZE
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', LEFTMARGIN=0.250000, RIGHTMARGIN=0.250000,
    TOPMARGIN=0.250000, BOTTOMMARGIN=0.250000, SQUEEZE=ON,
    ORIENTATION=PORTRAIT, $
TYPE=TITLE, FONT='TIMES NEW ROMAN', SIZE=9, COLOR=WHITE, BACKCOLOR=BLACK,
    STYLE=BOLD, BORDER=1, $
TYPE=REPORT,
     HFREEZE=ON,
     SCROLLHEIGHT=3.000000,
	 SIZE=9,
$
ENDSTYLE
END



Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 15, 2012, 01:15 PM
MAdams1
Yes, I am just stumped.
A straight copy of your working code sample doesn't work in my environment.

This is my non working, super simple example I uploaded to the case;

TABLE FILE CAR
PRINT
     CAR.CARREC.MODEL
     CAR.BODY.BODYTYPE
     CAR.BODY.SEATS
BY  LOWEST CAR.COMP.CAR
HEADING
"Testing HFREEZE"
" "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
     HFREEZE=TOP,
     SCROLLHEIGHT=6.000000,
$
ENDSTYLE
END
  



WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 01:19 PM
Tom Flynn
BTW, Hotfix 6 needs to be applied on your desktop for Dev Studio. ALL users of Dev Studio need the HotFix, fyi...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 15, 2012, 03:38 PM
MAdams1
Thank you Tom. I have applied it to my desktop and
the HFREEZE still does not work. The last I heard
from IBI was, they will look at my file I uploaded.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 03:47 PM
Francis Mariani
Well!

I tried running your super simple example in Dev Studio localhost and got the error!

Will investigate.


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
November 15, 2012, 03:54 PM
MAdams1
Thank you Francis! It's not just me!


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 15, 2012, 03:59 PM
Francis Mariani
So, it doesn't work in my Dev Studio hotfix 6 environment, but it does work in our server hotfix 5 environment.


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
November 15, 2012, 04:03 PM
Tom Flynn
quote:
TABLE FILE CAR
PRINT
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
CAR.BODY.SEATS
BY LOWEST CAR.COMP.CAR
HEADING
"Testing HFREEZE"
" "
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
HFREEZE=TOP,
SCROLLHEIGHT=6.000000,
$
ENDSTYLE
END


I get Francis' error in localhost, also. So, let us know how your case turns out...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
November 16, 2012, 07:17 AM
MAdams1
********************** COMMENTS FROM INFORMATION BUILDERS **********************

Michelle,
I tested this with the GGSALES file, just to produce more output, and
it looks like it is not working in the 7.7.03 release.
It works fine in the 7.6 releses .

If also works ok when going against the 7.7.04 reporting server.

Thank You, B.J.

********************************************************************************


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 21, 2012, 11:11 AM
MAdams1
Latest on this issue, and changing to [CASE-OPENED] until it is really solved.

********************** COMMENTS FROM INFORMATION BUILDERS **********************
...in testing this particualar issue, it seems that is is fixed
in the 7.7.04 release, based on our in-house testing.

Is this someting that can wait, till you can again upgrade to 7.7.04 ?

(my answer was no)

Ok, will go ahead and see if a fix can be made available to 7.7.03


********************************************************************************


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
November 26, 2012, 01:41 PM
Diane
I am using Server 7.7.04 with hotfix 6 and the above code (with car file) works. However, you need to changed the scrollheight to something smaller if you actually want to see the scroll bar working.


WebFOCUS 8.1.0.5m