I have got the code referenced at the bottom of my post to work successfully provided I block out the reference to the xml title(//oEnvelope.Subject = getNodeValue(xmlTitle); ). My issue resides specifically with this code:
var xmlTitle = XDocument.DOM.selectingSingleNode ("../dfs:dataFields/d:Tbl_Main/@Issue");
Can anyone tell me why I keep getting the error message. "A run-time error has occurred. Object doesn't support this property or method." I know for a fact that the path is correct. I have seen this code used else where, but for whatever reasons I just cant get it to refer to this or any other fields within my table. I have experimented with hard coding the value and I know it then works. But of course I need it to refer to a specific field to reduce redundancy. I commented out the reference to xmlTitle to get it to work. Your thoughts are welcomed. Thank you.
function SendEmailBtn::OnClick(eventObj)
{ createEmail(); }
function createEmail()
{ var rgRecipients = new Array();
var oEnvelope = XDocument.View.Window.MailEnvelope;
//var xmlTitle = XDocument.DOM.selectingSingleNode ("../dfs:dataFields/d:Tbl_Main/@Issue");
oEnvelope.To = rgRecipients.join("; ");
oEnvelope.Subject = getNodeValue(xmlTitle);
//oEnvelope.Subject = getNodeValue(xmlTitle);
oEnvelope.Visible = true; }