<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101357.aspx</link><pubDate>Mon, 23 Feb 2015 15:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101357</guid><dc:creator>MHemmings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101357.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101357</wfw:commentRss><description>&lt;p&gt;Hi Hilary, thank you for getting back to me. In the end I&amp;#39;ve solved the problem through good old trial and error (frankly through a huge amount of guesswork).&lt;/p&gt;&lt;p&gt;Essentially I have a clear button that&amp;#39;s forcing every field to be &amp;#39;something&amp;#39; with this:&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;root.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/...&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;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).SetValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;M&lt;/p&gt;</description></item><item><title>Re: Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101259.aspx</link><pubDate>Tue, 17 Feb 2015 16:21:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101259</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101259.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101259</wfw:commentRss><description>&lt;p&gt;How odd - I tried a little test form and when my query returned no data, I could just click the &amp;quot;insert&amp;quot; widget on the form and it inserted a new blank item for me to fill out - Are the data fields in your main DS in a repeating group?&lt;/p&gt;</description></item><item><title>Re: Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101255.aspx</link><pubDate>Tue, 17 Feb 2015 10:32:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101255</guid><dc:creator>MHemmings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101255</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for getting back to me Hilary.&lt;/p&gt;&lt;p&gt;My form is essentially the front-end for a table held on SQL Server. When you search for a User ID that doesn&amp;#39;t exist (the User ID field is the only Query Field on the form, the rest are Data Fields) all the Data Fields become greyed out and un-selectable.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m just looking for a way to force these fields to be editable.&lt;/p&gt;&lt;p&gt;M&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101235.aspx</link><pubDate>Mon, 16 Feb 2015 15:52:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101235</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101235</wfw:commentRss><description>&lt;p&gt;Hi - I saw this last week, but wasn&amp;#39;t sure how to reply - I&amp;#39;m not sure what you mean by making the fields editable. Are they currently not when you open the form? I mean, we often add a helper field of some kind (like, a true / false named Locked or some such) and then use form logic to set that, then add conditional formatting to the controls to make them read only when Locked = true - but I&amp;#39;m not sure that is what you are describing. &lt;/p&gt;</description></item><item><title>Re: Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101228.aspx</link><pubDate>Mon, 16 Feb 2015 08:37:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101228</guid><dc:creator>MHemmings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101228.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101228</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello again&lt;/p&gt;&lt;p&gt;Any chance anyone has had a flash of inspiration with regards this? I have an InfoPath project at work that&amp;nbsp;I am hoping to complete this week...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks, M&amp;nbsp;&lt;/p&gt;</description></item><item><title>Make fields editable through VB code</title><link>https://www.infopathdev.com:443/forums/thread/101196.aspx</link><pubDate>Fri, 13 Feb 2015 12:57:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101196</guid><dc:creator>MHemmings</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=101196</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have an InfoPath 2010 Form that has some VB code behind it (written using Visual Studio 2005), that is connecting to a database held on a machine running SQL Server 2008r2.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I want to be able to force fields in the InfoPath&amp;nbsp;Form to be editable or not, but haven&amp;#39;t found the code to be able to do this yet (I have done a fair amount of looking as well).&lt;/p&gt;&lt;p&gt;I can refresh the data connection very easily:&lt;/p&gt;&lt;blockquote style="margin-right:0px;" dir="ltr"&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.DataConnections(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Main connection&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).Execute()&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p dir="ltr"&gt;However this isn&amp;#39;t making the fields editable when I need them to be.&lt;/p&gt;&lt;p dir="ltr"&gt;&amp;nbsp;&lt;/p&gt;&lt;p dir="ltr"&gt;Any help with this would be greatly appreciated.&lt;/p&gt;&lt;p dir="ltr"&gt;M&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>