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
August 28, 2013, 08:07 PM
jshiley
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