<?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: Filling combo box items manually in a repeating grid</title><link>https://www.infopathdev.com:443/forums/thread/33967.aspx</link><pubDate>Thu, 06 Nov 2008 22:13:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33967</guid><dc:creator>jbobish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33967.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33967</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks guys, I believe this will work though I haven&amp;#39;t implemented it yet.&amp;nbsp; I don&amp;#39;t mind manually creating and changing the data source nodes in code now that I know that&amp;#39;s how it must be done.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filling combo box items manually in a repeating grid</title><link>https://www.infopathdev.com:443/forums/thread/33944.aspx</link><pubDate>Thu, 06 Nov 2008 13:57:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33944</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33944</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not 100% sure that the following would work on a browser-enabled form, but I have tried it on a regular form, and it works.&lt;/p&gt;
&lt;p&gt;Create a dummy XML file to use as a data source for the second dropdown box; something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;dropdownEntries&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry value=&amp;quot;&amp;quot; display=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;entry value=&amp;quot;&amp;quot; display=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/dropdownEntries&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Then in the OnAfterChange event of the field bound to the first dropdown box, perform the following in code:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Remove all &lt;em&gt;entry&lt;/em&gt; nodes from &amp;lt;dropdownEntries&amp;gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add new nodes to &amp;lt;dropdownEntries&amp;gt; accordingly, based on the new selected value in the first dropdown box.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;If you would like an example of how to perform this in code (it&amp;#39;s fairly simple), I&amp;#39;d be happy to provide it to you.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Filling combo box items manually in a repeating grid</title><link>https://www.infopathdev.com:443/forums/thread/33939.aspx</link><pubDate>Thu, 06 Nov 2008 12:05:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33939</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33939</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you enter dropdown values by manually for dropdown then we don&amp;#39;t have option to filter those for second dropdown. For these you have to prepare one secondary xml file and take the connection as resource file or data connection.&lt;/p&gt;
&lt;p&gt;Go through the below link once,&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/6064/22601.aspx#22601"&gt;http://www.infopathdev.com/forums/p/6064/22601.aspx#22601&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Filling combo box items manually in a repeating grid</title><link>https://www.infopathdev.com:443/forums/thread/33816.aspx</link><pubDate>Mon, 03 Nov 2008 18:30:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33816</guid><dc:creator>jbobish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33816.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=33816</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m working on a form that will have a set of repeating rows.&amp;nbsp; In each row are two columns, each containing a dropdown listbox.&amp;nbsp; Selecting a value in the first dropdown will determine what items are available to be selected in the second dropdown.&amp;nbsp; All values come from a SQL Server database query.&lt;/p&gt;&lt;p&gt;I need the form to be browser enabled and I believe that excludes me from using data source filters to accomplish this.&lt;/p&gt;&lt;p&gt;In non-infopath C# I would just manually fill both dropdowns with values and have the on_changed event of the first dropdown contain code to populate the second dropdown.&amp;nbsp; I haven&amp;#39;t been able to figure out how to do this within infopath.&amp;nbsp; Do any of you have any ideas?&lt;/p&gt;&lt;p&gt;Thanks! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>