<?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: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/36777.aspx</link><pubDate>Thu, 08 Jan 2009 17:20:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36777</guid><dc:creator>cali_kid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=36777</wfw:commentRss><description>&lt;p&gt;Found the answer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://www.infopathdev.com/forums/t/10102.aspx"&gt;http://www.infopathdev.com/forums/t/10102.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This works without having to introduce code into the form. One of the requirements from this client is to create forms, and hand them off to someone who is not&amp;nbsp; a programmer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the posts though.&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35954.aspx</link><pubDate>Wed, 17 Dec 2008 20:48:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35954</guid><dc:creator>cali_kid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35954</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not using a repeating table, I have a secondary data connection that pulls in list items from a list in SharePoint. This connection populates a drop down&amp;nbsp;control. There&amp;#39;s about 2,000 records in the list, and when I render the form via the browser, the sort that is based off of the view does not work through InfoPath form services. I&amp;#39;ve read several bloggs about using a preserve code block, but that solution is not supported in a browser enabled form. This needs to be sorted alphabetically.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35900.aspx</link><pubDate>Wed, 17 Dec 2008 11:29:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35900</guid><dc:creator>rishibajaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35900.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35900</wfw:commentRss><description>&lt;p&gt;I have to understand that what you are trying to do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What I am doing here is I have repeating table that has several rows in it. and then I have a dropdown box outside the repeating table. I am trying to get the row from repeating table to match the value selected in dropdown box.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35881.aspx</link><pubDate>Wed, 17 Dec 2008 04:12:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35881</guid><dc:creator>cali_kid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35881.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35881</wfw:commentRss><description>&lt;p&gt;Can you provide the steps necessary to implement this in a browser enabled form? New to InfoPath, and need some guidance.&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35858.aspx</link><pubDate>Tue, 16 Dec 2008 20:03:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35858</guid><dc:creator>rishibajaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35858</wfw:commentRss><description>&lt;p&gt;yes i did on that browser enabled form if that&amp;#39;s what you mean?&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35856.aspx</link><pubDate>Tue, 16 Dec 2008 19:40:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35856</guid><dc:creator>cali_kid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35856</wfw:commentRss><description>&lt;p&gt;Will this solution work in a form that is render via MOSS Form Services?&lt;/p&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35088.aspx</link><pubDate>Mon, 01 Dec 2008 13:54:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35088</guid><dc:creator>rishibajaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35088.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35088</wfw:commentRss><description>&lt;p&gt;Jimmy, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;thanks very much. this is what i did in case someone else runs into same problem, here is the solution :-&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; GetOrderDS = DataSources[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;GetItem&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#2b91af" size="2"&gt;
&lt;p&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; ordernameNode = GetOrderDS.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetItemResponse/tns:GetItemResult/tns:clsItem/tns:ItemName[../tns:ItemID=&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + LitNameI.Value + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35048.aspx</link><pubDate>Mon, 01 Dec 2008 01:35:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35048</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35048.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35048</wfw:commentRss><description>&lt;p&gt;Yes, this should work:&lt;/p&gt;&amp;nbsp;&lt;font color="#008080"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; source = DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetOrders&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;strong&gt;XPathNavigator&lt;/strong&gt; &lt;/font&gt;&lt;font size="2"&gt;&lt;strong&gt;ordernameNode&lt;/strong&gt; = source.&lt;strong&gt;SelectSingleNode&lt;/strong&gt;(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetOrdersResponse/tns:GetOrdersResult/NewDataSet/Table&lt;strong&gt;/ordername&lt;/strong&gt;[&lt;strong&gt;../&lt;/strong&gt;orderid=&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + e.NewValue.Trim() + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;string&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;ordername = ordernameNode.Value;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The parts I&amp;#39;ve changed are in bold.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35047.aspx</link><pubDate>Mon, 01 Dec 2008 01:23:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35047</guid><dc:creator>rishibajaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35047</wfw:commentRss><description>&lt;p&gt;thanks i was able to do it but i had to introduce for each loop. is there any way i can avoid for loop and still achive the results. here is my code where i will like to avoid for loop&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; source = DataSources[&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;GetOrders&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNodeIterator&lt;/font&gt;&lt;font size="2"&gt; retablerows = source.Select(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetOrdersResponse/tns:GetOrdersResult/NewDataSet/Table[orderid=&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + e.NewValue.Trim() + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;]&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager);&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;foreach&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; selectnode &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; retablerows)&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;string&lt;/font&gt;&lt;font size="2"&gt; ordername = selectnode.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;ordername&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35046.aspx</link><pubDate>Mon, 01 Dec 2008 00:10:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35046</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35046</wfw:commentRss><description>&lt;p&gt;There is no way to directly interact with InfoPath forms, so the only way to accomplish this is to get the current value of the field bound to the dropdown box, and then find the corresponding order name in the secondary data source that is being used to populate the form.&lt;/p&gt;</description></item><item><title>dropdownbox</title><link>https://www.infopathdev.com:443/forums/thread/35045.aspx</link><pubDate>Sun, 30 Nov 2008 23:41:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35045</guid><dc:creator>rishibajaj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=35045</wfw:commentRss><description>&lt;p&gt;I have a dropdownlist box in infopath form. Drop down gets filled from database&amp;#39;s order table. sample values are &lt;/p&gt;
&lt;p&gt;&amp;nbsp;order name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orderid&amp;nbsp;&lt;/p&gt;
&lt;p&gt;application kit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/p&gt;
&lt;p&gt;rellocationform&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/p&gt;
&lt;p&gt;&amp;nbsp;when i change value of dropdown box then how can i get text&amp;nbsp;of dropdown box programatically through c#. for example if i select rellocationform in drop down then how can i get text value (rellocationform) in a variable using c#&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>