Switching view prior to Submitting to Email Data Source?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top