Hyperlink using javascript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 02:09 AM
Hi All,
I am making some changes to the Approve/Reject workflow which is existing in Alfresco Out of Box. My requirement is it will trigger an email to the reviewer and the email will contain an hyperlink .On clicking the hyperlink, it will lead the reviewer to login to alfresco.
I have used the below Code
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "IT WILL HAVE A HYPERLINK ON CLICKING IT ALFRESCO LOGIN SCREEN WILL OPEN"
mail.execute(bpm_package);
I can able to send the email. But how i can make that link in the body message??
Pls help me with your inputs.
Thanks
PP
I am making some changes to the Approve/Reject workflow which is existing in Alfresco Out of Box. My requirement is it will trigger an email to the reviewer and the email will contain an hyperlink .On clicking the hyperlink, it will lead the reviewer to login to alfresco.
I have used the below Code
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "IT WILL HAVE A HYPERLINK ON CLICKING IT ALFRESCO LOGIN SCREEN WILL OPEN"
mail.execute(bpm_package);
I can able to send the email. But how i can make that link in the body message??
Pls help me with your inputs.
Thanks
PP
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2010 05:13 AM
Can anyone help me pls?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2010 02:25 PM
Finally I myself got the solution.
A simple URL with http:// is treated as a hyperlink in the browser.
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "http://localhost:8080/alfresco"
mail.execute(bpm_package);
A simple URL with http:// is treated as a hyperlink in the browser.
var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "http://localhost:8080/alfresco"
mail.execute(bpm_package);
