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     Embed HTML image link in a subfoot?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Embed HTML image link in a subfoot?
 Login/Join
 
Master
posted
I'm getting a syntax error on this in my fex:
...
ON TABLE SUBFOOT
"&DATE<+0> <+0>&TOD"
"<a href=""http://www.x.com/nextpage.htm""><img src=""next.jpg"" border="0"></a>"
...

Is there any way to make webfocus ignore the <a character? It's looking for an amper when I run it.

Thanks!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
There are a two ways to do this which use the same technique. Take the HTML code and put it in either a DEFINE or COMPUTE. I recommend a COMPUTE since it will be calculate fewer times.

Put the following in your code.

COMPUTE NEXTBUTN/A100='<a href="http://www.x.com/nextpage.htm"><img src="next.jpg" border="0"></a>'; NOPRINT

Then use the COMPUTE in your SUBFOOT.

ON TABLE SUBFOOT
"&DATE<+0> <+0>&TOD"
"<NEXTBUTN"

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


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Virtuoso
posted Hide Post
I have to correct my previous post. You can only do this with either a COMPUTE or DEFINE. The DM variable method does not work. Sorry for the confusion. I have not had my coffee yet today. Roll Eyes


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Hi Mickey,

Sure you can, do it all the time:

TYPE=SUBFOOT, IMAGE='&GIF_FILE.EVAL', POSITION=(+.35 +.40), SIZE=(9.500000 3.000000),$

Just FYI...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
Tom,

You are correct that this will work as well. I fell into the trap of the myopic view and only corrected the code that was given. I again blame it on no coffee yet. Music

In order for your suggestion to be complete you need to add URL=... to support the hyperlink.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Actually, it's TABFOOTING for a ON TABLE SUBFOOT, and you can't do exactly what Jason wants.

TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE SUBFOOT
"&DATE <+0> <+0>&TOD"
"1"
ON TABLE SET STYLE *
type=tabfooting, color=blue, 
IMAGE=http://www.informationbuilders.com/images/bulletin.jpg,$
type=tabfooting, line=1, url=http://www.help.com, $
END

Gives you an image and a hyperlink, but the hyperlink is not on the image. I think you simply have to use Mickey's idea and DEFINE a field that is then embedded in the SUBFOOT:

DEFINE FILE CAR
IMAGELINK/A200 = 
'<A HREF="http://www.informationbuilders.com/"><IMG SRC="http://www.informationbuilders.com/images/bulletin.jpg" BORDER=0></A>';
END

TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE SUBFOOT
"&DATE <+0> <+0>&TOD"
"<IMAGELINK"
END


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

Because nobody's actually said why you can't embed the HTML as you wanted, I'll tell you. It's because the leading carat < tells WF that a fieldname follows. If you don't have a field named "A" then you get an error.

You might be able to fool WF into passing the HTML for a left carat by using the "&|lt;" instead of the < but as I haven't tried it you'll have to test it out.

Incidently using the & lt; is how I get the < in this post.

Good luck

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
Master
posted Hide Post
Good work, Thanks!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report 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     Embed HTML image link in a subfoot?

Copyright © 1996-2020 Information Builders