开发者

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,

Nikhil


The 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜