This describes a modification to the HTML report template which adds a link to each diagram which allows feedback to be provided by email on the diagram being viewed. The email captures the comments together with diagram identity and a hyperlink back to the diagram being commented on.
Specifically the email generated by the hyperlink provides:
<div class="PageBody">
#IMAGE#
<div class="ObjectTitle">#NAME# : #TYPE# diagram</div>
<script type="text/javascript">
//-----------------------------------
function feedbackEmailLink(emailAddress,guidString,title,modified,author,modelRootToIndexHTM)
{
var oGuid=guidString.substring(1,guidString.length-1);
//url for EA object of form http://path/path/path/Index.htm?guid=xxxxxxxxxxxx
var oURL=modelRootToIndexHTM +'/index.htm?guid=' + oGuid;
var eMailSubject='subject=Feedback on - '+ title +' - by '+ author;
var bodyNewLine='%0A';
var objectHyperlinkString = oURL;
var eMailBody='Diagram Title - ' +title +bodyNewLine + 'ID - ' + oGuid + bodyNewLine + 'URL - ' + oURL + bodyNewLine +'Author - ' + author + bodyNewLine + 'Modified Date - ' + modified + bodyNewLine+ bodyNewLine + 'Feedback Comment' + bodyNewLine ;
var eMailLinkText='<a href="mailto:'+emailAddress+'?'+ eMailSubject+ '&body='+eMailBody + '">Send feedback on this view</a>';
return eMailLinkText;
}
//-----------------------------------
</script>
<div> #IMAGE# <div>#NAME# : #TYPE# diagram</div>
<tr>
<td width="15%" class="ObjectDetailsTopic">Modified:</td>
<td width="85%" class="ObjectDetailsValue">#MODDATE#</td>
</tr>
<tr id="contact">
<td width="15%" class="ObjectDetailsTopic">Feedback:</td>
<td width="85%" class="ObjectDetailsTopic">
<script type="text/javascript">
document.write(feedbackEmailLink('YOUR_EMAIL','#GUID#','#NAME#','#MODDATE#','#AUTHOR#','http://YOUR_URL'));
</script>
</td>
</tr>
That's it!

and when the reader clicks on the link he/she gets:

You can also use the same method to display a permalink (url) for each diagram so that visitors can link directly to a specific diagram.
This can be seen in an online repository http://trak-community.org/TRAK_Demo_Repository/

Comments
It is possible to use any of the recognised fields in http://www.sparxsystems.com/enterprise_architect_user_guide/report_gener.... I assume it allows any field to be used and this table shows what field is used in what HTML template. For example, this tip modifies body - diagram and therefore any of the fields in the first 'Body - Diagram' row can be used. My suggestion would be to add 2 extra table rows (
by Nic Plum on Wed, 08/09/2010 - 19:09.
Dear Nic, since I couldn't find a solution, (how) is it also possible to add/use fields like #PRIORITY# or #DIFF# in the "Body – Object" section? Thanks and regards!
by Ico on Sat, 17/07/2010 - 00:50.
Dear Nic, since I couldn't find a solution, (how) is it also possible to add/use fields like #PRIORITY# or #DIFF# in the "Body – Object" section? Thanks and regards!
by Ico on Fri, 16/07/2010 - 21:59.
Have a look at the help page "HTML Template Fragments", where all fields usable in the inulidual sections are listed. #PRIORITY# or #DIFF# don't seem to be availabe in any body sections though
by Patrick Seemann on Wed, 02/03/2011 - 21:42.