J
jy
Hello, i am new with infopath
i would to automatically name a form with a specific name and date when i
click on the save button
the following are the code that i have tried to use. but i click on save it
display's the following
Request for Business Cards for null null
in the save window
function XDocument::OnSaveRequest(eventObj)
{
//Declarations using fields within the form. note the tree structure for the
fields used.
var Name = XDocument.DOM.selectSingleNode("my:LastName").text;
var Today1 = XDocument.DOM.selectSingleNode("/myate");
// Write the code to be run before saving here.
XDocument.UI.SetSaveAsDialogFileName("Request for Business Cards for " +
Name + " " + Today1);
// have the actual save function occur and return back to the current form.
eventObj.IsCancelled = eventObj.PerformSaveOperation();
// Write the code to be run after saving here.
eventObj.ReturnStatus = true;
hope someone can help me thank you
i would to automatically name a form with a specific name and date when i
click on the save button
the following are the code that i have tried to use. but i click on save it
display's the following
Request for Business Cards for null null
in the save window
function XDocument::OnSaveRequest(eventObj)
{
//Declarations using fields within the form. note the tree structure for the
fields used.
var Name = XDocument.DOM.selectSingleNode("my:LastName").text;
var Today1 = XDocument.DOM.selectSingleNode("/myate");
// Write the code to be run before saving here.
XDocument.UI.SetSaveAsDialogFileName("Request for Business Cards for " +
Name + " " + Today1);
// have the actual save function occur and return back to the current form.
eventObj.IsCancelled = eventObj.PerformSaveOperation();
// Write the code to be run after saving here.
eventObj.ReturnStatus = true;
hope someone can help me thank you