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     [SOLVED] Annoying <A NAME="PAGE_1"> tag at the beginning of HTML output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Annoying <A NAME="PAGE_1"> tag at the beginning of HTML output
 Login/Join
 
Platinum Member
posted
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(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
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(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Report This Post
Expert
posted Hide Post
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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     [SOLVED] Annoying <A NAME="PAGE_1"> tag at the beginning of HTML output

Copyright © 1996-2020 Information Builders