I am trying to implement a customize Save so that I provide my users with the ability to save a Performance Review form to their own computer (Submitting sends the form to SharePoint and notifies their manager that the form is ready for review). I have the following function but it is not working (no file gets saved to the specified folder. Any ideas on what I am doing wrong? any ideas on how to specify the MyDocuments location of the user would also be appreciated.
function SaveToCDrive::OnClick(eventObj)
{
var myFileName = XDocument.DOM.selectSingleNode("/my:PerformanceReview/my:EmployeeInfo/my:EmployeeNumber").text + ".xml";
//debugger;
XDocument.UI.SetSaveAsDialogLocation("C:\\Temp");
XDocument.UI.SetSaveAsDialogFileName(myFileName);
}
TIA
Dean