<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54201.aspx</link><pubDate>Tue, 27 Apr 2010 11:16:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54201</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54201.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54201</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here is a complete solution about how to publish a form. Use Internet Explorer.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54198.aspx</link><pubDate>Tue, 27 Apr 2010 10:31:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54198</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54198.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54198</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi. Thank you. I have changed all varibles to local, and I am using functions to pass the variables. I have no error in the form when i make it compatible with the web-based forms to fill it using a browser. However, when i publish it in Sharepoint I get a message saying: The form was closed. What could it be? The form works fine localy, on my machine where i have infopath. I use custom code for saving the information into the database. Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54186.aspx</link><pubDate>Tue, 27 Apr 2010 07:00:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54186</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54186.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54186</wfw:commentRss><description>&lt;p&gt;yes everything should be right&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54182.aspx</link><pubDate>Tue, 27 Apr 2010 06:09:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54182</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54182.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54182</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi. Thank you for answering. So, if I replace all global variables with local ones, and I use functions with parameters, all should be ok right? Thank you!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54161.aspx</link><pubDate>Mon, 26 Apr 2010 13:14:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54161</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54161</wfw:commentRss><description>&lt;p&gt;the above code seems to be fine, you need viewstate for global variables only. There might be some other code that throws errors&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54159.aspx</link><pubDate>Mon, 26 Apr 2010 13:11:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54159</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54159</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The form state applies only to global variables or to any of them?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54147.aspx</link><pubDate>Mon, 26 Apr 2010 11:35:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54147</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54147</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for your answers.&lt;/p&gt;&lt;p&gt;Take this code for example. How should it be converted, I have tried but the values are not assigned if i use FormState(&amp;quot;..&amp;quot;). I am using InfoPath 2007&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub InternalStartup(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Startup&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler DirectCast(EventManager.ControlEvents(&amp;quot;btnSave&amp;quot;), ButtonEvent).Clicked, AddressOf btnSaveBuilding_Clicked&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xnFormName As XPathNavigator&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xnDoc As XPathNavigator&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Info As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim currentIdentity As WindowsIdentity&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strInfo = &amp;quot;&amp;quot;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;create navigators&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnFormName = Me.MainDataSource.CreateNavigator()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnDoc = Me.MainDataSource.CreateNavigator()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;citesc domeniul si userul din windows&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentIdentity = WindowsIdentity.GetCurrent()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strInfo = currentIdentity.Name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#39;adaugare user in campul de pe form &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnFormName.SelectSingleNode(&amp;quot;/my:View1/my:txtInfo&amp;quot;, Me.NamespaceManager).SetValue(strInfo)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub &lt;/p&gt;&lt;p&gt;Thank you! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54145.aspx</link><pubDate>Mon, 26 Apr 2010 11:09:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54145</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54145.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54145</wfw:commentRss><description>&lt;p&gt;Member variables (global variables) are not supported by Browser enabled forms, so you cannot use them, instead you can use form state. to store variables. just follow the syntax given&amp;nbsp; &lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; _memberVariable&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;get&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormState[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;_memberVariable&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;set&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;FormState[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;_memberVariable&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;] = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;value&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54144.aspx</link><pubDate>Mon, 26 Apr 2010 11:08:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54144</guid><dc:creator>Prasad</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54144</wfw:commentRss><description>&lt;p&gt;In InfoPath, you cannot decalre variables directly. To declare the variables you need to use the form state dictionary.&lt;/p&gt;</description></item><item><title>Browser enabled forms</title><link>https://www.infopathdev.com:443/forums/thread/54142.aspx</link><pubDate>Mon, 26 Apr 2010 11:01:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54142</guid><dc:creator>alexia_net</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54142</wfw:commentRss><description>&lt;p&gt;Hi. I have created a form in InfoPath and I have userd some code in C# for creating some connections to an Sql database and for doing some other things. When I have tried to make it browser enabled i got many errors and I was suggested to use the FormState property to store data. Can someone inlight me please. What exactly is this? What should i do in order to convert my code. I am new with InfoPath. Sorry for my quesitons. Thank you! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>