Hi Matt,
I don't have permissions to upload. You might be interested in a post that I submited to a similur forum, http://www.infopathdev.com/forums/thread/20220.aspx 20691. This might help explain what I am working torwards.
I was successfully able to complete the tutorial at; http://enterprise-solutions.swits.net/infopath2003/article.php?t=programmatically-add-item-sharepoint-2003-calendar-infopath-2003-script&c=infopath2003
it is sort of what I am trying to do only I want to submit to an issues list not an event to a calendar. But when I modified it to fit my design the button did not submit nor did I get an error that something was wrong.
My source:
var root = XDocument.DOM;
// Retrieve the values for the Action Item
var PPCEID = root.selectSingleNode("my:myFields/my:PPCEID").text;
var PPCENumber = root.selectSingleNode("my:myFields/my:PPCENumber").text;
var Description = root.selectSingleNode("my:myFields/my:Description").text;
var AssignedTo0 = root.selectSingleNode("my:myFields/my:AssignedTo0").text;
var Status0 = root.selectSingleNode("my:myFields/my:Status0").text;
var DueDate = root.selectSingleNode("my:myFields/my:DueDate").text;
var batch = XDocument.DataObjects["assToCAML"].DOM;
// Set PPCEID batch.selectSingleNode("/Batch/Method/Field[@Name='PPCEID']").text = PPCEID;
// Set PPCENumber batch.selectSingleNode("/Batch/Method/Field[@Name='PPCENumber']").text = PPCENumber;
// Set Description batch.selectSingleNode("/Batch/Method/Field[@Name='Description']").text = Description;
// Set AssignedTo batch.selectSingleNode("/Batch/Method/Field[@Name='AssignedTo0']").text = AssignedTo0;
// Set Status batch.selectSingleNode("/Batch/Method/Field[@Name='Status0']").text = Status0;
// Set DueDate batch.selectSingleNode("/Batch/Method/Field[@Name='DueDate']").text = DueDate;
// Submit the item details to the web service to update AI List
XDocument.DataAdapters["Submit"].Submit();
Sorry for the confusion. Thanks for you patience.