Focal Point
[SOLVED] Annoying <A NAME="PAGE_1"> tag at the beginning of HTML output

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

October 08, 2008, 03:45 PM
bug
[SOLVED] Annoying <A NAME="PAGE_1"> tag at the beginning of HTML output
I'm not sure if this only happens on ver 4.x or not. When the output is HTML, the first row of the table ALWAYS has this annoying
<A NAME="PAGE_1">


Example 1:

ON TABLE SUBHEAD
"ABCD"


Output:
<TD NOWRAP ALIGN=CENTER BGCOLOR="#003366">
<A NAME="PAGE_1">
<FONT SIZE=4>ABCD</FONT></A>
</TD>


Example 2:

HEADING
"XYZ"


Output:
<TD NOWRAP ALIGN=CENTER>
<A NAME="PAGE_1">
XYZ</A></TD>


Example 3:

No SUBHEAD or HEADING:

<TD NOWRAP ALIGN=LEFT VALIGN=BOTTOM>
<A NAME="PAGE_1">
<U>Policy #</U></A>
</TD>


(Here "Policy #" is the title of the first column)


I believe it has something to do with paging. So I add the following code:


SET PAGE=NOPAGE
SET LINES=9999
...
...
ON TABLE SET PAGE-NUM OFF
...

But none of them takes any effect.

The client has a standard of CSS for all HTML outputs, and this unwanted
<A NAME="PAGE_1">
assumes the hyperlink styling. How can I get rid of it?

Thanks

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


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
October 08, 2008, 04:55 PM
Francis Mariani
bug, I think this is a WF 4 issue. The anchor is not generated in my WF 5 environment.

You may be able to correct your problem by using CSS class selectors.

For example, to resolve the problem in the report headings, you would give the WF HEADING a class in the WF style sheet. Then you would add a CSS class selector to undo whatever the standard CSS anchor styling does.

SET PAGE=NOPAGE
SET LINES=2

TABLE FILE CAR
SUM
SALES
BY COUNTRY
HEADING
"WEBFOCUS REPORT"

ON TABLE HOLD AS H001 FORMAT HTMTABLE

ON TABLE SET STYLE *
TYPE=DATA, COLUMN=COUNTRY, FOCEXEC=TEST2 (COUNTRY=COUNTRY), $
TYPE=HEADING, CLASS=HEADING, $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE TYPE="TEXT/CSS">
/* Standard CSS */
a { color: green; }
</STYLE>

<STYLE TYPE="TEXT/CSS">
/* Override CSS */
a.HEADING { color: black; }
</STYLE>
</HEAD>
<BODY>

!IBI.FIL.H001;

</BODY>
</HTML>
-HTMLFORM END

It's not a definitive solution but it might work.

Are you working for one of those insurance companies that insist on using antique versions of WF?


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
October 09, 2008, 02:49 AM
Tony A
Bug,

... nor on 7.6.2 servers.

However, I'm intrigued, why is it annoying? It's an anchor tag and does not get displayed except for as a hyperlink and (certainly in releases 5.n onwards) you can remove the colouration and underscore of a hyperlink using WF style sheets syntax - STYLE=-UNDERSCORE, COLOR=BLACK,. Is it that or is it that it is given a name attribute?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
October 09, 2008, 09:38 AM
bug
Francis:

I ran your code. The heading picks up the
<a>
styling, while the HEADING class CSS doesn't apply. Here is the output:

<TD CLASS='HEADING'>
<A NAME="PAGE_1">WEBFOCUS REPORT</A>
</TD>


As a result, heading is still in green color without underline.

In our case, we have defined a HEADING class for all report headings. But since it doesn't work for the first line, we always have to specify the style for the first line of heading explicitly:

TYPE=HEADING, LINE=1, COLOR=BLACK,$


And the same happens when there is no heading and the title of the first column is enclosed in this unwanted anchor tag.

Maybe upgrade is the only solution, which is the least to happen for this client...

Tony:

It's annoying because of the above reason. It always picks up the predefined anchor style, instead of the style I want it to be.


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
October 09, 2008, 09:54 AM
Tony A
Ahhhh, I see why now. Unfortunately I think that you are stuck with your workaround until you upgrade Frowner

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10