Hiow to switch Infopath view in XMLFormView Webpart when the Web Part loads?
I am using the code given at following link : How To: Display browser enabled InfoPath forms in a web part supporting connections in my custom web part.
Does any one know how to switch the Infopath view 开发者_运维百科to a specific View when the web part loads ?
Thanks,
NikhilThe following InfoPath code would generally work when using the InfoPath client.
public void FormEvents_Loading(object sender, LoadingEventArgs e)
{
e.SetDefaultView("View 2");
}
Not sure if this will do the same in Browser Enabled forms.
The beta of the PDF Converter for SharePoint I have worked on comes with a version of the Browser based InfoPath viewer that allows the view name to be passed on the URL. See this post for an example.
精彩评论