I read the other post on this topic but I am lost. On submit I would like it to save an XML file to a network share using a Date/Time picker for the name of the file that gets saved. I am code stupid, so any help is greatly appriciated.
Here is the code as it stand at this moment:
/* * This file contains functions for data validation and form-level events.
* Because the functions are referenced in the form definition (.xsf) file,
* it is recommended that you do not modify the name of the function,
* or the name and number of arguments.
*
*/
// The following line is created by Microsoft Office InfoPath to define the prefixes
// for all the known namespaces in the main XML data file.
// Any modification to the form files made outside of InfoPath
// will not be automatically updated.
// XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-02-10T20:42:46" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');
// //======= // The following function handler is created by Microsoft Office InfoPath.
// Do not modify the name of the function, or the name and number of arguments. /
/=======
function XDocument::OnSubmitRequest(eventObj)
{
// If the submit operation is successful, set
// eventObj.ReturnStatus = true;
// Write your code here
}