<?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: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85734.aspx</link><pubDate>Wed, 02 Jan 2013 19:16:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85734</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85734.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85734</wfw:commentRss><description>&lt;p&gt;Yeah - it is being stubborn about previewing.&lt;/p&gt;&lt;p&gt;What I usually do is put my cursor to the left of the expression box and backspace to ensure that there is no carriage return between the controls. I also usually set row height to auto for the row - generally that prevents these issues.&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85733.aspx</link><pubDate>Wed, 02 Jan 2013 18:55:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85733</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85733.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85733</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached my xsn file.&amp;nbsp; It does use a schema file which I didn&amp;#39;t attach and also has a number of data connections to databases on our servers.&amp;nbsp; That is how the Category drop down is populated.&amp;nbsp; Not sure if that will cause you problems.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also, and this may seem odd but it saved massive changes at the time, the Category field has a label of Purpose.&amp;nbsp; We used to have Purpose &amp;gt; Category but then they decided to switch them around.&amp;nbsp; So if you click on the field following the Purpose label, you will see it is the Category field.&amp;nbsp; In that section I have the button and the expression box.&amp;nbsp; I put the CategorySelected field over to the right as I was trying to reformat things.&amp;nbsp; I made the changes on the Initiator (default) view only.&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85731.aspx</link><pubDate>Wed, 02 Jan 2013 18:29:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85731</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85731.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85731</wfw:commentRss><description>Feel free to attach your form under the Options tab if you&amp;#39;d like me to take a look.</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85729.aspx</link><pubDate>Wed, 02 Jan 2013 18:19:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85729</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85729.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85729</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t have a carriage return between them.&amp;nbsp; If I make the width smaller on both objects, there is only one line.&amp;nbsp; But I have it set at a width of 336 px to accommodate some long items in the drop down list.&amp;nbsp; If I take the expression box out or take the drop down box out, there is only one line.&amp;nbsp; But with both on the form, even when one is hidden, it is two lines.&amp;nbsp; Thanks for your help Hilary!&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85726.aspx</link><pubDate>Wed, 02 Jan 2013 16:34:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85726</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85726.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85726</wfw:commentRss><description>Do you have a carriage return between the two controls? If you go back to the original sample I posted, you&amp;#39;ll see that my row is only one line, regardless which control is displayed.</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85725.aspx</link><pubDate>Wed, 02 Jan 2013 16:24:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85725</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85725</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;That did it.&amp;nbsp; The button works great.&amp;nbsp; Thanks for your help.&amp;nbsp; I have one final question.&amp;nbsp; This field is contained in a cell of a repeating table.&amp;nbsp; With the addition of the expression box it now takes up two lines instead of one, even though the expression box and drop down don&amp;#39;t display at the same time.&amp;nbsp; Is there a way when I hide either one for it not to be taken into account in the display screen so I can keep it all on one line?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again.&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85545.aspx</link><pubDate>Thu, 20 Dec 2012 20:53:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85545</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85545</wfw:commentRss><description>&lt;p&gt;If you add code to your button, you should be able to use something like this to get the purpose:&lt;/p&gt;&lt;p&gt;e.Source.selectSingleNode(&amp;quot;ns1:Purpose&amp;quot;) &lt;/p&gt;&lt;p&gt;Run in debug on the event on the button so you can look at e.Source. :-)&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85544.aspx</link><pubDate>Thu, 20 Dec 2012 20:34:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85544</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85544</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;Thanks for your patience :)&amp;nbsp; I run a query for our Purpose drop down below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;adapter.Command = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Format(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SELECT Category from bpiPersonalReimbursementPurposeCategory where Purpose = &amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + e.Site.text + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39; order by Purpose,Category&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Since I can&amp;#39;t use e.site.text because I won&amp;#39;t be on the Purpose.OnAfterChange event, I&amp;#39;m not sure how to access the Purpose for the expense item in a repeating table that I have moved to.&amp;nbsp; I think that&amp;#39;s the last thing missing.&amp;nbsp; Makes sense to re-query on the button.&amp;nbsp; Sorry I didn&amp;#39;t realize that.&amp;nbsp; Helps to know that during the onBeforeChange event the DOM is read only.&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;
&lt;p&gt;&lt;font color="#800000"&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85538.aspx</link><pubDate>Thu, 20 Dec 2012 17:56:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85538</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85538.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85538</wfw:commentRss><description>&lt;p&gt;In an on before change, the DOM is read only - you need to run your code in a changed event. &lt;/p&gt;&lt;p&gt;I feel like I&amp;#39;m not explaining well - and I am kind of at a loss as to how to explain better - I&amp;#39;d hoped the sample form would help. The thing is that your PurposeCategory data source only has the items for the second purpose when you query it for the specific purpose. Your button for redisplaying the drop down needs to run the same query again for the purpose for that row. You need to add code to the button to run the filtered query again.&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85507.aspx</link><pubDate>Wed, 19 Dec 2012 21:27:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85507</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85507.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85507</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;I ran my code in debug and saw where the error was occurring.&amp;nbsp; I was occurring on code I had on the Category_OnBeforeChange.&amp;nbsp; I had added that code there awhile back&amp;nbsp;in an attempt to repopulate the Category drop down based on the Purpose&amp;nbsp; which is my issue here.&amp;nbsp; The code is below.&amp;nbsp; The error occurred in the commented out code at &lt;font color="#008000"&gt;&amp;#39;adapter2.Query().&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Regarding your suggestion, I have changed my form so it contains the expression box and button and the rules and conditional formatting.&amp;nbsp; I also added the CategorySelected field to my schema.&amp;nbsp; The CategorySelected field is changing from true to false where appropriate and fields are displaying based on that value.&amp;nbsp; When I create my first expense item&amp;nbsp;I am able to select my Category as usual.&amp;nbsp; When I create my second expense item, I can select my Category.&amp;nbsp; But the problem still remains when I go back to the first expense item and click the drop down I see the categories for the second expense item, the one I just inserted,&amp;nbsp; and not the current expense item.&amp;nbsp; I&amp;#39;m unclear how the drop down on the Category field on the first expense item will be re-populated.&amp;nbsp; You mentioned using e.source.selectsinglenode(&amp;quot;ns1:Purpose&amp;quot;) but I wasn&amp;#39;t clear about that.&amp;nbsp; Thanks again for your help!!&amp;nbsp; Mary&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;lt;InfoPathEventHandler(MatchPath:=&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/ns1:ProcessDocument/ns1:Document/ns1:PersonalReimbursement/ns1:ExpenseItems/ns1:item/ns1:Category&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, EventType:=InfoPathEventType.OnBeforeChange)&amp;gt; _&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Public&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;Sub&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Category_OnBeforeChange(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; DataDOMEvent)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Category &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; IXMLDOMNode = e.Site&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Purpose &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; IXMLDOMNode = Category.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;../ns1:Purpose&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Purpose.text &amp;lt;&amp;gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&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;Or&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Purpose.text &amp;lt;&amp;gt; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;Select&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;Then&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Dim adapter2 As ADOAdapterObject&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;adapter2 = CType(thisXDocument.DataAdapters(&amp;quot;PurposeCategory&amp;quot;), ADOAdapterObject)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;adapter2.Command = String.Format(&amp;quot;SELECT Category from bpiPersonalReimbursementPurposeCategory where Purpose = &amp;#39;&amp;quot; + Purpose.text + &amp;quot;&amp;#39; order by Purpose,Category&amp;quot;)&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;adapter2.Query()&amp;nbsp; *****ERROR OCCURRED HERE&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;adap8 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&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;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SqlDataAdapter(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;SELECT Category from bpiPersonalReimbursementPurposeCategory where Purpose = &amp;#39;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + Purpose.text + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39; order by Purpose,Category&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, strConnString2)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; dsDat8 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&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;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; DataSet&lt;br /&gt;adap8.Fill(dsDat8)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&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;If&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&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;Sub&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85500.aspx</link><pubDate>Wed, 19 Dec 2012 19:45:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85500</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85500</wfw:commentRss><description>Hey, Mary - it is kind of hard to track down what may be going wrong with just that error info - can you run your code in debug? That would give you a better idea of what is happening. Here&amp;#39;s a blog &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx"&gt;post&lt;/a&gt; to help you run in debug if you need it.</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85499.aspx</link><pubDate>Wed, 19 Dec 2012 19:42:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85499</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85499</wfw:commentRss><description>So - to &lt;a href="http://www.infopathdev.com/members/aaronthompson528.aspx"&gt;aaronthompson528&lt;/a&gt;&amp;nbsp;- I&amp;#39;m not clear what &amp;quot;using a web service to fill this out&amp;quot; means - you may want to start a new thread w/ the details on your form, and maybe under the Options tab attach a sample so we can get a better idea of the issue you are having.</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85498.aspx</link><pubDate>Wed, 19 Dec 2012 19:27:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85498</guid><dc:creator>marymc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85498</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m back from vacation and added your idea to my per reim form.&amp;nbsp; I am getting an error and am wondering if it is because my drop down list uses a data connection called PurposeCategory&amp;nbsp;to populate it.&amp;nbsp; Here is the error message after I select an item from the Category field (which never populates).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;System.Runtime.InteropServices.COMException&lt;br /&gt;The query cannot be run for the following DataObject: PurposeCategory&lt;/p&gt;
&lt;p&gt;InfoPath cannot run the specified query.&lt;br /&gt;InfoPath cannot update the data, because the form is currently read-only.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust.ADOAdapter2.Query()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust.ADOAdapterObjectWrapper.Query()&lt;br /&gt;&amp;nbsp;&amp;nbsp; at PersonalReimbursements.PersonalReimbursements.Category_OnBeforeChange(DataDOMEvent e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._DataDOMEventSink_SinkHelper.OnBeforeChange(DataDOMEvent pDataDOMEvent)&lt;/p&gt;
&lt;p&gt;What do you think?&amp;nbsp; THANKS!&lt;/p&gt;
&lt;p&gt;Mary&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85488.aspx</link><pubDate>Wed, 19 Dec 2012 17:31:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85488</guid><dc:creator>aaronthompson528</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85488.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85488</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a repeating group that has fields 1, 2 and 3. Field 2 is a dropdown&amp;nbsp;box which pulls information from SharePoint site items to populate the&amp;nbsp;box.&amp;nbsp;We are&amp;nbsp;using a web service&amp;nbsp;to fill this out.&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Dropdown List Box in Repeating Table</title><link>https://www.infopathdev.com:443/forums/thread/85487.aspx</link><pubDate>Wed, 19 Dec 2012 17:06:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:85487</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/85487.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=85487</wfw:commentRss><description>Actually, it sounds like you might have a different problem - how is your form set up? Do you query for your SharePoint list items on load? Or are you querying for just the SharePoint items you need in each group (which can cause an issue like I described). Are&amp;nbsp;you using filters on your drop down? Is your form a browser form or do you use InfoPath to fill it out?</description></item></channel></rss>