Focal Point
[CLOSED] Opening outlook using URL=mailto:(email),

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

October 12, 2017, 08:49 AM
Hawk
[CLOSED] Opening outlook using URL=mailto:(email),
In version 8.1 when I used the code below, it would open outlook and place jpotter@eandi.org in the email. Now in 8.2 it places and equal sign in front of it like this =jpotter@eandi.org. Has anyone else seen this happen?

TYPE=DATA,
COLUMN=EMAIL,
DRILLMENUITEM='Click to Launch Outlook',
URL=mailto:(email),
TARGET='_blank',
$

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.2.01M
Windows, All Outputs
October 12, 2017, 09:23 AM
MartinY
I have tested under 8201M and it work fine
TABLE FILE CAR
SUM SEATS
    COMPUTE EMAIL/A100 = 'Mail'; AS 'Click To Mail'
BY COUNTRY
ON TABLE SET STYLE *
TYPE=DATA,
	COLUMN=EMAIL,
	DRILLMENUITEM='Click to Launch Outlook',
	URL=mailto:me@mycie.com,
	TARGET='_blank',
$
ENDSTYLE
END
-RUN



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
October 13, 2017, 04:40 AM
GamP
This code is slightly different, but it also does not present any problem in opening outlook with the correct email address:
APP APPENDPATH IBISAMP

DEFINE FILE CAR
EMAIL/A64 = IF CAR EQ 'JAGUAR' THEN 'my.email@address.com' ELSE ' ';
END

TABLE FILE CAR
PRINT SEATS
      EMAIL
BY    COUNTRY
ON TABLE SET STYLE *
TYPE=DATA,
	COLUMN=EMAIL,
	DRILLMENUITEM='Click to Launch Outlook',
	URL=mailto:(email),
	TARGET='_blank',
$
ENDSTYLE
END
-RUN  

This works fine in 8.201M gen 08142017. Possibly you're using a somewhat older version?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
October 13, 2017, 05:11 AM
Clinton Side-Kick
Good morning All,

Out of curiosity I quickly tested this in 8202 Beta. The parameter value passing behaviour is as expected, it passes "mailto:my.email@address.com"
However instead of opening Outlook, it opens a new browser session with "mailto:my.email@address.com" in the URL address.
Eeker


--------------------------------------------------------------------------------
prod: WF/AS 8.2.05; OmniGen;
In FOCUS since 1991
October 13, 2017, 08:05 AM
MartinY
The issue with GamP sample is the DRILLMENUITEM.
If you keep it, a new mail does open in Outlook, but without a valid "TO" address.
But if you remove the DRILLMENUITEM it work properly under WF8201M gen 193.

DEFINE FILE CAR
EMAIL/A64 = IF CAR EQ 'JAGUAR' THEN 'my.email@address.com' ELSE ' ';
END
TABLE FILE CAR
PRINT SEATS
      EMAIL AS 'Click to Launch Outlook'
BY    COUNTRY
ON TABLE SET STYLE *
TYPE=DATA,
	COLUMN=EMAIL,
-*	DRILLMENUITEM='Click to Launch Outlook',
	URL=mailto:(email),
	TARGET='_blank',
$
ENDSTYLE
END
-RUN



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007