Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

URLHelper trigger mail

Hi,


is something new with the URLHelper to trigger mail: sap.m.URLHelper.triggerEmail(mail) ??

In my first app with role based menu it doesn't work anymore.


Thanks & Regards



1 Comment

Hi Franziska


You can also try to use another approach if the sap.m.URLHelper is not working. 


 

// Get Selected Item
var context = oEvent.oSource.getBindingContext();
var href = context.getProperty("HREF");
var type = context.getProperty("DESCRIPTION");

switch (type) {

    case "eMail":
        var urlHelper = window.open("mailto:" + href, "_blank");
        urlHelper.close();
        break;

    case "Work Phone":
        var urlHelper = window.open("tel:" + href, "_blank");
        urlHelper.close();
        break;

    case "Cell Phone":
        var urlHelper = window.open("tel:" + href, "_blank");
        urlHelper.close();
        break;

    case "SMS":
        var urlHelper = window.open("sms:" + href, "_blank");
        urlHelper.close();
        break;

}

 

Regards

Ole Andre 

Login or Signup to post a comment