Partager via


Debugging Sandboxed Code in InfoPath 2010 Forms

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. Get Microsoft Silverlight

Here is this link to the ULS viewer tool that is used in the demo:

Filters:

  • Process=SPUCWorkerProcess (for administrator-approved forms, filter on the W3WP process)
  • Message=Exception thrown from business logic

Comments

  • Anonymous
    May 05, 2010
    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?

  • Anonymous
    May 05, 2010
    Correction to the text from my comment should read "... It seems you cannot switch to a View in the formload event..."

  • Anonymous
    May 05, 2010
    Hi Bob_Chauvin, If you want to switch views in the form "Loading" event, you need to use the "LoadingEventArgs" like this: e.SetDefaultView("YourViewName"); The "SwitchView" method is used, say, on the Click event of a button. Scott

  • Anonymous
    May 05, 2010
    Hi Bob, We also have a new DefaultView query parameter in InfoPath 2010. DefaultView=viewname e.g. http://ipfsdog14/sites/ipfs/_layouts/FormServer.aspx?XmlLocation=/sites/ipfs/lhtemp/asdsadasd.xml?OpenIn=Browser&DefaultView=view2 Laura

  • Anonymous
    May 05, 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?

  • Anonymous
    May 05, 2010
    Hi Bob, Yes - these will work in the browser. Scott

  • Anonymous
    June 01, 2010
    The comment has been removed

  • Anonymous
    June 02, 2010
    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.

  • Anonymous
    June 06, 2010
    The comment has been removed

  • Anonymous
    June 07, 2010
    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?

  • Anonymous
    June 07, 2010
    Any word on creating an Infopath 2010 forum on MSDN?

  • Anonymous
    June 07, 2010
    InfoPath 2010 questions should be directed to the "SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization" forum: social.msdn.microsoft.com/.../threads

  • Anonymous
    November 07, 2010
    The comment has been removed