managed code in browser-enabled forms - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

managed code in browser-enabled forms

Last post 09-20-2007 03:20 AM by Lacroix. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-19-2007 03:30 AM

    managed code in browser-enabled forms

    Hi,
    I'm currently developing a browser-enabled infopath 2007 form containing managed code... however, the codebehind won't execute when I publish it to my sharepoint site.
    This is the first time I'm doing this, so I think I'm forgetting something here.
    I followed the steps explained in this guide: http://geekswithblogs.net/jgmeyer/archive/2006/06/26/83087.aspx

    Deploying is ok, and my form works... however, when I run the form I'm pretty sure the codebehind isn' t executed.
    I've got a debug statement in FormEvents_Loading and I can't see it happen.

    My main question is... do I also have to deploy the dll file containing the codebehind or is that included in the .xsn file?
    In essence, what I'm trying to do is the following: I'm passing a parameter to the infopath form, that I would like to retrieve in the Loading Event.
    Then that parameter should be passed to webservice dataconnections that receive data. I hope that's possible? I managed to create webservices that pass data, but only without parameters.
    I don't know yet how I can set those parameters via code.

     

    Any help is appreciated.
    Thanks in advance.

    Lacroix

     

    edit: trying to fix missing linebreaks

  • 09-19-2007 09:28 AM In reply to

    Re: managed code in browser-enabled forms

    I don't necessarily have an answer to you question -- however, the DLL is part of the XSN, so that shouldn't be the issue.

    You probably already have this covered -- but I just want to mention that web based forms will not work in SharePoint 2003.

    Hopefully someone else has more info for you that this...

  • 09-20-2007 03:20 AM In reply to

    Re: managed code in browser-enabled forms

    Strange, the code I've written now seems to be working, but my debug statements are still not visible (in debugview). Won't they work with deploy infopath forms? I've got another question tho. My form has a dataconnection to submit data to a webservice. The webservice needs a paramater which is a custom class, for example Company. When I first created the form and created the dataconnection Infopath made items in MyFields for me for each property of the Company class. However the company class is still changing a bit, so I want to update the databound fields in InfoPath. The problem is, even if I delete my datasource and create it again, the fields I can select when I choose datasource -> main, are always the same (the old ones). Is there any way I can have InfoPath requery the webservice and look in the Company Class to see what fields are databound?
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.