Focal Point
[CLOSED] URL=Mailto

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

December 14, 2005, 05:04 PM
jnguy2
[CLOSED] URL=Mailto
Hi, I coded the following statement in my report.

URL=mailto:(Email ?Subject=Subject),TARGET=BLANK,$

where Email is the actual email address and Subject is the purchase order number i.e PO # 12345678.

But when I clicked on the column to send email, WF generated the '&' at the end of the email address i.e joedoe@dotcom.com&.

Is anyway the & remove from the email address?

Please help. Thanks.

This message has been edited. Last edited by: Kerry,
December 14, 2005, 05:29 PM
Francis Mariani
I think you will have to do it with a JavaScript function. Take a look at this example:

SET BYDISPLAY = ON
-RUN

TABLE FILE CAR
PRINT
MODEL
BY COUNTRY
BY CAR
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=8, $
TYPE=DATA, COLUMN=COUNTRY, JavaScript='fnMail(COUNTRY CAR)', $
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<SCRIPT LANGUAGE=JAVASCRIPT>
function fnMail(Email,Subject)
{
window.location = 'mailto:' + Email + '?Subject=' + Subject;
}
</SCRIPT>
!IBI.FIL.HOLD;
-HTMLFORM 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
December 14, 2005, 06:55 PM
susannah
Francis, you totally rock, you know that!
thank you!




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
December 15, 2005, 09:55 AM
Francis Mariani
Susannah,

I never congratulated you on achieving Master status, so, congrats!


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
December 15, 2005, 10:02 AM
susannah
ROFL




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
January 04, 2006, 11:29 AM
Kerry
FYI,

The user managed to resolve the issue using the following:

DEFINE FILE VPAY
SUBJECT/A50 = 'PO # ' || po_nbr;
NEW_EMAIL/A200 = 
'<a href="mailto:' || Email || '?subject=' || SUBJECT || '">' || Entered_By || '</a>';
END
TABLE FILE VPAY
PRINT
NEW_EMAIL


Congradulations Big Grin and thanks for sharing.

Cheers,

Kerry

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


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
January 04, 2006, 01:39 PM
Francis Mariani
Kerry,

Would you mind reposting your message with the option "Disable HTML" selected?

Thanks,

Francis.


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
September 29, 2011, 11:34 AM
MMcDonald
How do you add the BODY to he NEW_EMAIL field?
thanks


8.0.9, Windows
excel / pdf
September 30, 2011, 10:25 AM
ABT
quote:
Originally posted by MMcDonald:
How do you add the BODY to he NEW_EMAIL field?
thanks


Shooting from the hip, would it be:

DEFINE FILE VPAY
SUBJECT/A50 = 'PO # ' || po_nbr;
BODY/A100    = 'I have an amazing business proposition for you. The leader of my country is in exile and all I need is your bank account number to retrieve untold millions in wealth...';
NEW_EMAIL/A200 = 
'<a href="mailto:' || Email || '?subject=' || SUBJECT || '&|body=' || BODY ||'>' || Entered_By || '</a>';
END

TABLE FILE VPAY
PRINT
NEW_EMAIL


See: http://email.about.com/od/mail.../mailto_elements.htm

-ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro