V
vegan gerry, chief software architect
public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
// If the submit operation is successful, set
// e.CancelableArgs.Cancel = false;
// Write your code here.
throw new Exception("Submit failed");
}
Above is the default submit event. I've added the "throw new Exception" for
now.
I would like to trap the .xml file that presumably would get written if it
were error free and save it with a file name of my choice to a location of my
choice. I do not want to use the default name "Form1.xml".
Also, I have a readonly text field called "lessonStatus" with a default
value of "not completed".
Before I save the .xml file, I would like to change the status to "completed".
The second thing that I would like to do is to save the .xml file with a
file status of read only. The idea is that the end user can reopen the file
and view it but can not make any further changes.
Please advise.
Thank you.
Regards,
Gerry (Lowry)
{
// If the submit operation is successful, set
// e.CancelableArgs.Cancel = false;
// Write your code here.
throw new Exception("Submit failed");
}
Above is the default submit event. I've added the "throw new Exception" for
now.
I would like to trap the .xml file that presumably would get written if it
were error free and save it with a file name of my choice to a location of my
choice. I do not want to use the default name "Form1.xml".
Also, I have a readonly text field called "lessonStatus" with a default
value of "not completed".
Before I save the .xml file, I would like to change the status to "completed".
The second thing that I would like to do is to save the .xml file with a
file status of read only. The idea is that the end user can reopen the file
and view it but can not make any further changes.
Please advise.
Thank you.
Regards,
Gerry (Lowry)