In this video demo, Phil Newman from the InfoPath program management team shares some tips and tricks for debugging InfoPath forms with sandboxed code on SharePoint server 2010.
Here is this link to the ULS viewer tool that is used in the demo:
I'm trying to get a form to open to a specific tab based on url parameters, to no avail. It seems you cannot chage a form in the formload event. Is there a formloaded event?
Correction to the text from my comment should read "... It seems you cannot switch to a View in the formload event..."
If you want to switch views in the form "Loading" event, you need to use the "LoadingEventArgs" like this:
The "SwitchView" method is used, say, on the Click event of a button.
We also have a new DefaultView query parameter in InfoPath 2010.
Scott and Laura, Thanks for your assist. The e.SetDefaultView("YourViewName"); seems to work as expected in the full client. Will these approaches work for browser forms as well?
Yes - these will work in the browser.
Hi, i can't debug any C# code for InfoPath 2010. If i'll try to run "Start debugging" in VSTA this error show: "Microsoft InfoPath does not recognize some or all of the command line options. ...". What i have to do? Sorry for my english:-).
This looks like a bug that was in the pre-release 64 bit builds of InfoPath 2010, and which was fixed in the final released product.
I get the error "Microsoft InfoPath does not recognize some or all of the command line options. ..." in the final release of InfoPath 2010 as well. I can see that Visual Studio for Applications is version 2005 - can this be correct?
The version of VSTA is correct. The known bug is fixed in the final build of Office 2010. Do you experience this issue on other machines? What about if you create a new InfoPath form and VSTA project?
Any word on creating an Infopath 2010 forum on MSDN?
InfoPath 2010 questions should be directed to the "SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization" forum: social.msdn.microsoft.com/.../threads
Hi, I'm trying to debug my code in InfoPath Desiger but it prompts "Microsoft InfoPath does not recognize some or all of the command line options. ...", my version is 14.0.4763.1000, is this the final release you mentioned??
Thanks for helping.