<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Error in Task form with code behind</title><link>https://www.infopathdev.com:443/forums/thread/16664.aspx</link><pubDate>Tue, 20 Mar 2007 23:01:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:16664</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/16664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=16664</wfw:commentRss><description>Hi Yashvir,&lt;br /&gt;&lt;br /&gt;If the OnLoad is not being called for the form and you need it to be, then you should be able to simply call it yourself from the other form.&lt;br /&gt;&lt;br /&gt;From what I understand it you simply took the FormCode.cs file from another form and included it as a resource file in a new form.  If so, this new form will not call OnLoad or any of the other event handlers for that matter.  In this case, you will need to initialize the variable in some other fashion, such as a Init() method.</description></item><item><title>Error in Task form with code behind</title><link>https://www.infopathdev.com:443/forums/thread/15565.aspx</link><pubDate>Wed, 07 Mar 2007 05:48:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15565</guid><dc:creator>Yashvir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15565.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15565</wfw:commentRss><description>We created one infopath form(web enabled)with code behind&lt;br /&gt;and using it as task form for our workflow.&lt;br /&gt;&lt;br /&gt;We copying ".dll" file of form code in folder where form is copied in run time&lt;br /&gt;copying is done through command in "Install.bat" file.&lt;br /&gt;Form is rendring on the site when we go to task list and edit that task&lt;br /&gt;It is throwing an error on click of approve or reject button&lt;br /&gt;saying "Object refrence null"&lt;br /&gt;when we debugged the form code while debugging the workflow code&lt;br /&gt;we found that the variable because of which this error was coming was actually initialized in the form load part&lt;br /&gt;and that variable is not retaining the value for it.&lt;br /&gt;while reading somewhere i come to know something about formState.&lt;br /&gt;&lt;br /&gt;Can you please elaborate on it or if you have any solution for this</description></item></channel></rss>