T
T Stewart
I am creating a form that after it is filled out, I'd like to switch the view
to the read-only view, submit it to the SharePoint site and send the email to
contacts as defined within the form.
I'm using code like such:
public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
this.ViewInfos.SwitchView("Print - Email View");
this.CurrentView.ForceUpdate();
this.DataConnections["Email Submit"].Execute();
this.DataConnections["Submit Maintenance Notification"].Execute();
e.CancelableArgs.Cancel = false;
}
However, when the email is sent, it's blank!
How can I switch views and submit an email at the same time?
to the read-only view, submit it to the SharePoint site and send the email to
contacts as defined within the form.
I'm using code like such:
public void FormEvents_Submit(object sender, SubmitEventArgs e)
{
this.ViewInfos.SwitchView("Print - Email View");
this.CurrentView.ForceUpdate();
this.DataConnections["Email Submit"].Execute();
this.DataConnections["Submit Maintenance Notification"].Execute();
e.CancelableArgs.Cancel = false;
}
However, when the email is sent, it's blank!
How can I switch views and submit an email at the same time?