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] mailto in report header

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] mailto in report header
 Login/Join
 
Member
posted
I am trying to display a mailto link in a report header based off of data passed into the report via variables from the parent report. I tried this:

-SET &POCEMAIL = '<a href="mailto:' || &EVENTPOC_EMAIL || '">' || &EVENTPOC || '</a>';

SET NODATA = ''
-SET &ECHO='ALL';

TABLE FILE CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION
PRINT
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.STUDENT_NAME	AS 'NAME'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.ORGANIZATIONNAME  AS 'Organization'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.UIC	AS 'UIC'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.SUBUIC AS 'Sub-UIC'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.ORGSTRUCTURE AS 'Org Structure,Code'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.SUPERVISOR_NAME AS 'Supervisor'
     CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.RS.DAYSPENDING AS 'Days,Pending'
HEADING
"&REPORT_TITLE  "
"Report Date:  <+0>&REPORT_DATE "
" "
"Event Title: <+0>&EVENTTITLE "
"Event Start Date:  <+0>&EVENTSTARTDATE "
"Event Location:  <+0>&EVENTLOCATION "
"Event Host:  &EVENTHOST "
"Event POC: <+0>&POCEMAIL "



The error I get is "(FOC406) THE FIELDNAME IS NOT RECOGNIZED: a"

It appears that the

<a 

at the beginning of the tag is being interpreted as a field. Any suggestions?

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6.9
Windows
Excel, HTML, and PDF
 
Posts: 5 | Registered: July 14, 2009Report This Post
Expert
posted Hide Post
Please put your code between
[code]
your code here
[/code]
tags, otherwise the HTML in your code gets interpreted by the browser.


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
Try using the concatenate character:
-SET &POCEMAIL = '<|a href="mailto:' || &EVENTPOC_EMAIL || '">' || &EVENTPOC || '<|/a>';


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
Virtuoso
posted Hide Post
You've got

    -SET &POCEMAIL = '<a href="mailto:'  || &EVENTPOC_EMAIL || '">' || &EVENTPOC || '</a>';
    . . .
    "Event POC: <+0>&POCEMAIL "
    
    


which will evaluate to:
"Event POC: <+0><a href="mailto:someone@some.dom"> yada yada yada </a> "


Bad. First off, the open-quote before mailto will be interpreted by TABLE as closing the heading line.

Also, before that point, the '<' character, occurring within a heading or footing line, has significance to TABLE:
"<a "
is a directive to insert the value of the field named 'a' at that point -- hence the error message you received.

Just insert &EVENTPOC, unadorned, in the heading, and declare the mailto: hyperlink in the STYLE section.

This message has been edited. Last edited by: j.gross,


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
Thank-you Francis and Jack! Jack, your solution worked once I researched how to reference items in a header line within a stylesheet. Francis, I was already using a javascript function in the data section of the parent report that I had found from a different post of yours. I just didn't know I could use it for header items. Thanks again to both of you. The final code looks like this (&POCEMAIL is an email address passed in from the parent report):
HEADING
"&REPORT_TITLE  "
"Report Date:  <+0>&REPORT_DATE "
" "
"Event Title: <+0>&EVENTTITLE "
"Event Start Date:  <+0>&EVENTSTARTDATE "
"Event Location:  <+0>&EVENTLOCATION "
"Event Host:  <+0>&EVENTHOST "
"Event POC: <+0>&EVENTPOC "
" "
WHERE CL_CLASS_FILL_PENDING_SUPERVISOR_ACTION.INPUT.@SCHEDULEID EQ '&SCHEDULEID';
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT &OUTPUTFMT
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     INCLUDE = navyedacm,
$
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
$
TYPE=HEADING,
	LINE=8,
	ITEM=2,
	JAVASCRIPT=fnMail('&POCEMAIL'),
.....
ENDSTYLE
END
-HTMLFORM BEGIN
<SCRIPT LANGUAGE=JAVASCRIPT>
function fnMail(Email)
{
window.location = 'mailto: ' + Email;}
</SCRIPT>
!IBI.FIL.H001;
-HTMLFORM END


WebFOCUS 7.6.9
Windows
Excel, HTML, and PDF
 
Posts: 5 | Registered: July 14, 2009Report 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] mailto in report header

Copyright © 1996-2020 Information Builders