D
Deb
Thanks to the many good people on this forum, I have the following code I
typically put behind a Submit button on my forms which checks for required
fields having values, then submits and closes InfoPath. If I use Rules to
submit, there is no way to tell InfoPath to close itself.
So, what I now need is the ability to specify what Data Connection to submit
to. Can that be done within the XDocument.Submit() line below?
{
if (XDocument.Errors.Count > 0)
{XDocument.UI.Alert("Required information is missing as indicated by the red
asterisk(s).") ;
return;
}
try
{
XDocument.Submit()
Application.ActiveWindow.Close(true);
}
catch(e)
{
XDocument.UI.Alert(e.description);
}
typically put behind a Submit button on my forms which checks for required
fields having values, then submits and closes InfoPath. If I use Rules to
submit, there is no way to tell InfoPath to close itself.
So, what I now need is the ability to specify what Data Connection to submit
to. Can that be done within the XDocument.Submit() line below?
{
if (XDocument.Errors.Count > 0)
{XDocument.UI.Alert("Required information is missing as indicated by the red
asterisk(s).") ;
return;
}
try
{
XDocument.Submit()
Application.ActiveWindow.Close(true);
}
catch(e)
{
XDocument.UI.Alert(e.description);
}