- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Good Morning.
I have added the script you provided and modified according to field names, but something is still hanging up. I am not sure if it's as simple as I have the 'for...' portion in the wrong spot. I know I'm missing something, and it's probably a simple thing.
Here is the modified script. Thanks,
var tableData = "";
var subject = "Inventory for: " + mainPage.userDetails.userName.rawValue;
var myDoc = event.target;
var emailBody = "Attached is the inventory for " + mainPage.userDetails.userName.rawValue + tableData + ".\n";
for (i=0; i < eqRow.instanceManager.count; i++){
tableData = tableData + this.resolveNode("eqTable.eqRow[" + i + "].hardwareModel.rawValue + " " + this.resolveNode("eqTable.eqRow[" + i + "].oldST.rawValue + " " + this.resolveNode("eqTable.eqRow[" + i + "].newST.rawValue + "\n";
};
try {
myDoc.mailDoc({
bUI: false,
cTo: "",
cCC: "",
cSubject: subject,
cMsg: emailBody,
cSubmitAs: "PDF"
});
} catch (e){
}
Views
Replies
Total Likes