<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22849.aspx</link><pubDate>Tue, 04 Sep 2007 06:38:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22849</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22849.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22849</wfw:commentRss><description>&lt;p&gt;Yes, I think I know what your problem might be: you are using &lt;strong&gt;absolute &lt;/strong&gt;xpath instead of a &lt;strong&gt;relative &lt;/strong&gt;one. An absolute xpath starts from the root node (typically it is prefixed with /) while the relative one starts from e.Site. Just think of what e.Site represents and compute the closest possible path from there.&lt;/p&gt;
&lt;p&gt;I hope this helps...&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22830.aspx</link><pubDate>Mon, 03 Sep 2007 03:33:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22830</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22830</wfw:commentRss><description>&lt;p&gt;Hi David, &lt;/p&gt;
&lt;p&gt;&amp;nbsp; I Fig. out how to access childeren etc.&amp;nbsp; The only issue left to resolve is that each time main table repeats then the code still appends the results to the first drop down instead of appending it to the current insatance.&lt;/p&gt;
&lt;p&gt;So, let&amp;#39;s say that my table repeated 3 times.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Table Repetition 1: First time the drop downs get populated just fine&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; Table Repetition 2: it&amp;#39;s drop down is empty and the results get attached to the frist Repetition&amp;#39;s drop down&lt;/p&gt;
&lt;p&gt;&amp;nbsp; and so on. &lt;/p&gt;
&lt;p&gt;&amp;nbsp; I&amp;#39;m using the &amp;quot;&lt;strong&gt;e.Site.Select.......&amp;quot;&lt;/strong&gt;&amp;nbsp; So, I would assume that each time it&amp;#39;ll poin to the current iteration but appearently it doesn&amp;#39;t.&amp;nbsp;&lt;strong&gt; Do you know the reason by any chance?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks.&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22828.aspx</link><pubDate>Sun, 02 Sep 2007 19:53:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22828</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22828</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi David,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; Your code has been a great help.&amp;nbsp; But I was wondering if you could be kind and help me understand some of the concepts so that I can tackle any variations instead of bugging you each time:&lt;br /&gt;Here is the form structure that I&amp;#39;m working with:&lt;/p&gt;&lt;p&gt;&lt;u&gt;Main Data Source:&lt;/u&gt;&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;&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;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;GetResult (I will use this data connection to populate the &lt;b&gt;ListB, which will populate the form drop down list&lt;/b&gt;):&lt;/u&gt;&lt;br /&gt;&amp;nbsp;- myFields&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;  &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;  &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; - input&lt;br /&gt;&amp;nbsp;&amp;nbsp; - ParentSection&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;  &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;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;  - inputListA_ID &amp;nbsp;  &amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - MasterSection (repeating)&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;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;  - output (notes: these results are filtered based on what&amp;#39;s selected in ListA)&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;  - Goup1&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;  &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;  &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;&amp;nbsp; - ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (this value will be assigned to &lt;b&gt;listB_ID&lt;/b&gt; attribute in behind the form code)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;  - ListB (repeating)&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;  &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;  &amp;nbsp; - Name (this value will be assigned to &lt;b&gt;listB_Name&lt;/b&gt; attribute in behind the form code)&amp;nbsp;  &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;  - listB_ID&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;  &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;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - listA_ID&amp;nbsp;  &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;  - listB_Name&lt;/p&gt;&lt;p&gt;&lt;b&gt;Based on your code, I&amp;#39;ve written the following and have few questions:&lt;/b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;u&gt;1. Do I need to get a selection of each element from the GetResult Data connection (as i&amp;#39;ve written one below)?&amp;nbsp; Because I need &amp;quot;ID&amp;#39; and &amp;quot;Name&amp;quot; elements from this data connection.&lt;/u&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;u&gt;&lt;/u&gt;&lt;/i&gt;string matchingSpotXPath = String.Format(&amp;quot;/dfs:myFields/dfs:dataFields/tns:&lt;u&gt;GetResult &lt;/u&gt;/ tns:output / NewDataSet/output [listA_ID = &amp;#39;{0}&amp;#39;]/Name&amp;quot;, e.Site.Value);&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;2.&amp;nbsp;&lt;/i&gt; &lt;u&gt;&lt;i&gt;How does the appending works here.&amp;nbsp; I&amp;#39;ve a &lt;b&gt;ListB&lt;/b&gt; node and then I&amp;#39;ve two attributes &lt;b&gt;listB-ID&lt;/b&gt; and &lt;b&gt;listB-Name&lt;/b&gt;.&amp;nbsp; So, I&amp;#39;m stuck at trying to figure out on how to append the&lt;br /&gt;ListB element and their corresponding attributes and assign their values.&amp;nbsp; I&amp;#39;ve written the following but I need more guidance on getting access to attributes, appending attributes, and assiging values.&lt;/i&gt;&lt;/u&gt; &lt;/p&gt;&lt;p&gt;foreach (XPathNavigator spotNavigator in this.DataSources[&amp;quot;GetResult&amp;quot;].CreateNavigator().Select(matchingSpotXPath, NamespaceManager))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (XmlWriter writer = parent.AppendChild())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;ListB&amp;quot;,NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;), spotNavigator.value);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22745.aspx</link><pubDate>Wed, 29 Aug 2007 16:00:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22745</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22745</wfw:commentRss><description>&lt;p&gt;Hey cocodog,&lt;/p&gt;
&lt;p&gt;Sorry for the late response...&lt;/p&gt;
&lt;p&gt;1. There is bug in my deletion code. Here is the correct way to delete the nodes:&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Remove existing values first&lt;br /&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt;&amp;gt; nodesToDelete = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;List&lt;/font&gt;&lt;font size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt;&amp;gt;();&lt;br /&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="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; citySourceNode &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; parent.Select(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;my:citySource&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager))&lt;br /&gt;{&lt;br /&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;nbsp;&amp;nbsp; // Cannot just call DeleteSelf on the navigator because it alters the iteration state.&lt;br /&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&amp;nbsp;&amp;nbsp; // Instead, collect the navigators for future deletion.&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp; nodesToDelete.Add(citySourceNode.Clone());&lt;br /&gt;}&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;// Now remove all the nodes.&lt;br /&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="#2b91af" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;font size="2"&gt; citySourceNode &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;in&lt;/font&gt;&lt;font size="2"&gt; nodesToDelete)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; citySourceNode.DeleteSelf();&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;2. You only have one repeating node listB_Source. Instead, make it so that it has two children:&lt;/p&gt;
&lt;p&gt;listB_Source&lt;br /&gt;&amp;nbsp; displayValue&lt;br /&gt;&amp;nbsp; dataValue&lt;/p&gt;
&lt;p&gt;In designer, specify displayValue and dataValue in the UI when you are setting up the listbox properties. Finally, in your code, append the displayValue and dataValue nodes under each new instance of listB_Source and set their values respectively to list_ID and list_TItle.&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22655.aspx</link><pubDate>Sun, 26 Aug 2007 19:23:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22655</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22655.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22655</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey,&lt;/p&gt;&lt;p&gt;&amp;nbsp; I&amp;#39;ve everything working.&amp;nbsp; I need help with two things:&lt;/p&gt;&lt;p&gt;&amp;nbsp; 1.&amp;nbsp; When rebuilding the drop-down it doesn&amp;#39;t delete all the previous ones.&amp;nbsp; At leaves one from the previous drop-down and adds the new ones to it.&amp;nbsp; This happens in your example as well.&amp;nbsp; Any suggestion?&lt;/p&gt;&lt;p&gt;&amp;nbsp; 2.&amp;nbsp; My drop-down is populated from this data conn:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp; ListB&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  + queryFields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp; -&amp;nbsp; resultFields&amp;nbsp; &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;  . list_ID&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;  . list_Title&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . listA_ID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The current code con-cats all these values and place it in the drop down .&amp;nbsp; How&amp;nbsp; Can I&amp;nbsp; place these values as I want to. For ex: drop-down ID = list_ID and drop-down Value = list_TItle.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks a lot for all of your help.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22646.aspx</link><pubDate>Sat, 25 Aug 2007 02:55:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22646</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22646</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hey Buddy,&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;I finally got everything going, EXCEPT, it doesn&amp;#39;t populate the dropdown list at all.&amp;nbsp; Keeping your exmaple in mind then it doesn&amp;#39;t populate &amp;quot;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;mySubCategoryValues&amp;quot; even though the foreach loops thorugh the right number of times.&amp;nbsp; So, data is there but it doesn&amp;#39;t get added to the dropdown?&amp;nbsp; Any idea?&amp;nbsp; Also, how can i add my returned values into &amp;quot;id&amp;quot; and &amp;quot;value&amp;quot; of&amp;nbsp; the drop-down repectively.&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;thanks.&lt;/font&gt;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;&lt;b&gt;&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22645.aspx</link><pubDate>Fri, 24 Aug 2007 20:48:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22645</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22645.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22645</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you so much for giving this solution but I&amp;#39;m having the following problem.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;Here is my setup:&amp;nbsp; ListA (populated vis Data conn (via web service to DB)).&amp;nbsp; Upon selection of ListA, it calls the GetLibstB(ListA ListA_ID) a web service.&amp;nbsp; I&amp;#39;m populating the drop-down, on the form, for listB using your code.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve something like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;public void ListA_Changed(object sender, XmlEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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; XPathNavigator parent = e.Site.SelectSingleNode(&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; foreach (XPathNavigator listBSourceNode in parent.Select(&amp;quot;my:listB_Source&amp;quot;, NamespaceManager))&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; {&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listBSourceNode.DeleteSelf();&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; }&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; string matchingListBSource = String.Format(&amp;quot;/dfs:myFields/dfs:dataFields/tns:GetListBResponse/tns:GetListBResults/NewDataSet/values[@ListA_ID = &amp;#39;{0}&amp;#39;]&amp;quot;, e.Site.Value);&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; foreach (XPathNavigator &lt;b&gt;listBNavigator &lt;/b&gt;in this.DataSources[&amp;quot;GetListB&amp;quot;].CreateNavigator().Select(matchingListBSource,NamespaceManager))&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; {&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (XmlWriter writer = parent.AppendChild())&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writer.WriteElementString(&amp;quot;listB_Source&amp;quot;, NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;), spotNavigator.Value);&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&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; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;During dubgging, the mathingListBSource has the right value.&amp;nbsp; Also, I placed the GetListB data connection onto the form and it does return the right values.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any idea why the&amp;nbsp; &lt;b&gt;listBNavigator always comes up null (that&amp;#39;s what the debugger shows).&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks again for all of your help.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22604.aspx</link><pubDate>Thu, 23 Aug 2007 23:17:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22604</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22604.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22604</wfw:commentRss><description>&lt;p&gt;I have created and uploaded a working sample here: &lt;a href="http://www.infopathdev.com/files/folders/community_uploads/entry22603.aspx"&gt;http://www.infopathdev.com/files/folders/community_uploads/entry22603.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the zip file contains the ready-to-deploy XSN as well as the source code. I hope this helps you!&lt;/p&gt;
&lt;p&gt;David.&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22601.aspx</link><pubDate>Thu, 23 Aug 2007 18:26:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22601</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22601.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22601</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for you rply.&amp;nbsp; However, is there a more detail article that I can follow because I&amp;#39;m new to Infopath and behind the form coding.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Another thing I was think was to get all the values from my &amp;quot;C&amp;quot; list and then just filter w/in the form.&amp;nbsp; However, this is browser based form and such filtereing is not supported.&amp;nbsp; Do you know any workaround for that.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Again, thanks a lot.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22599.aspx</link><pubDate>Thu, 23 Aug 2007 16:48:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22599</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22599</wfw:commentRss><description>&lt;p&gt;Hi Cocodog123,&lt;/p&gt;
&lt;p&gt;We have a Web service that we developed which does the filtering based on an XML filter that you pass to it. You can install the free dev version from our downloads - look for DBXL 2.1. You&amp;#39;ll want to look at the documentation on EnumDB. Let us know if you need&amp;nbsp;help setting up a UDC for it.&lt;/p&gt;
&lt;p&gt;Cheers!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22585.aspx</link><pubDate>Thu, 23 Aug 2007 15:19:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22585</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22585</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Hello!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Unfortunately, there is no easy way to achieve what you are trying to do for the very reason that data sources for dropdown values cannot be filtered. There is one workaround but it&amp;#39;s pretty ugly because it involves modifying your main data source and polluting your XML. Here is how it would work:&lt;br /&gt;&lt;br /&gt;Suppose your current data source looks like this:&lt;br /&gt;&lt;br /&gt;myFields&lt;br /&gt;&amp;nbsp; myRepeatingTable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCategory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySubCategory&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;A dropdown bound to mySubCategory will always have the same values in each row no matter what. What you can do, though, is to add those values under the repeating table, like this:&lt;br /&gt;&lt;br /&gt;myFields&lt;br /&gt;&amp;nbsp; myRepeatingTable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCategory&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySubCategory&lt;br /&gt;&lt;b&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;mySubCategoryValues&lt;/b&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;(Make sure mySubCaregoryValues node is repeating)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Now you can set the dropdown&amp;#39;s values to &amp;quot;Look up values in the form&amp;#39;s data source&amp;quot; and point them to mySubCategoryValues. Finally, you will have to write code that replaces those values whenever myCategory changes. Note that you will always need to postback to the server whenever category changes simply because code can only run server-side.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Hope this helps a bit.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Browser form dropdown filtering using webservice</title><link>https://www.infopathdev.com:443/forums/thread/22446.aspx</link><pubDate>Mon, 20 Aug 2007 20:09:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22446</guid><dc:creator>cocodog123</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22446.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22446</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve Browser-enabled form that has a repeating table.&amp;nbsp; This repeating table has a Category and Sub-Category (which is filtered based on Category through data connection via WebService and database).&amp;nbsp; &lt;/p&gt;&lt;p&gt;Problem is each time the table repeats and the corresponding Category and Sub-Category gets called then the Sub-Category gets updated in the previous repetitions as well since the same data connection is used.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;So, what are my options to avoid this?&amp;nbsp; How can I make every Table repetition keep it&amp;#39;s own Sub-Category?&amp;nbsp; The solution could be behind the form code ... doesn&amp;#39;t matter.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ll really appreciate any help.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>