<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/44952.aspx</link><pubDate>Sat, 25 Jul 2009 01:26:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44952</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44952</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for your reply. Just to make sure that we are using same terminology when yo say &amp;#39;first drop down&amp;#39;. The value in the second (cascading) drop down is changed when you switch the value in the first. Right?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What exactly do you do in your rule? Based on your solution I did added a Rule then added an&amp;nbsp; Action &amp;quot;Query using a data connection&amp;quot;&amp;nbsp; and for the data source I selected the data source for the first dropdown. But it didn&amp;#39;t fix the problem.&lt;/p&gt;&lt;p&gt;I also tried to&amp;nbsp; add an action &amp;quot;set a field&amp;#39;s value&amp;quot; of the first drop down to the value of the data source - but then when you open the form the first value is always&amp;nbsp; selected in the first dropdown and the form doesn&amp;#39;t save the data of the cascading dropdown after opening submitted form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/44809.aspx</link><pubDate>Wed, 22 Jul 2009 21:36:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44809</guid><dc:creator>KjpInc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44809</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I had something similar. My drop downs were populated by a secondary data source and the filter was working fine. But when I saved the form and opened it again, only the selected value was there.&lt;/p&gt;&lt;p&gt;To get around this problem, I used a rule and the trigger for it was loading of the form. You have the option of adding rules when you load up the form. Tools--&amp;gt;FormOptions--&amp;gt;OpenAndSave--&amp;gt;Rules.&lt;/p&gt;&lt;p&gt;In this rule I queries the datasource which was populating my first drop down. So everytime I opened the form, the drop down was populated with the all the option but also retained the selected value when opened from a saved state.&lt;/p&gt;&lt;p&gt;Hope it helps. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/44723.aspx</link><pubDate>Tue, 21 Jul 2009 15:22:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44723</guid><dc:creator>lanita</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44723</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m doing something similar except that instead of using a filter I change FileLocation to switch to a different view&amp;nbsp; based on the selection. The reason I can&amp;#39;t use filter is because I have multiple values in my lookup column.&lt;/p&gt;&lt;p&gt; Cascading drop-down is working fine except that after the form is submitted only the selected value is showing up in the drop-down - instead of the set of values for that selection.&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;p&gt;thanks &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/35398.aspx</link><pubDate>Sat, 06 Dec 2008 06:36:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35398</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35398</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad you got it working. Thanks for sharing your solution with us!&lt;/p&gt;</description></item><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/35387.aspx</link><pubDate>Fri, 05 Dec 2008 18:39:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35387</guid><dc:creator>hvandesa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35387.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35387</wfw:commentRss><description>&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;I discovered that this code appends data onto the existing xml, so I&amp;#39;ve added code to clear it out so I don&amp;#39;t need to strip the special characters out for the filter because the only data will already be the correct set.&amp;nbsp; Plus I had an issue with needing to add a security certificate to allow the code to execute.&amp;nbsp;&amp;nbsp; If anyone is interested the code I added is as follows:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void ClearVendorValue()&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; MessageBox.Show(&amp;quot;Clear Vendor Value Executing&amp;quot;);&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 myNavigator = this.DataSources[&amp;quot;VendorEquipmentListXML&amp;quot;].CreateNavigator();&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; XPathNodeIterator nodes = myNavigator.Select(&amp;quot;//rs:data/z:row&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; while (nodes.MoveNext())&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; nodes.Current.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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;ClearVendorValue();&amp;nbsp; ADDED BEFORE q.Execute(); IN SetVendorDetails()&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/35351.aspx</link><pubDate>Fri, 05 Dec 2008 06:46:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35351</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35351</wfw:commentRss><description>&lt;p&gt;Hello Welcome to the Forums,&lt;/p&gt;
&lt;p&gt;Sometimes if we copy the data from another file or word document to XML Editor then it will give some special characters like as you are. For removing these special character or unknown character we have to copy the complete xml data to notepad and check with new characters available then remove it. And again copy from notepad to XML Editor. &lt;/p&gt;
&lt;p&gt;If so those special character still there we have to remove that node complete and try to write one more time in XML Editor File.&lt;/p&gt;</description></item><item><title>Cascading drop-down with "Lookup field" values</title><link>https://www.infopathdev.com:443/forums/thread/35310.aspx</link><pubDate>Thu, 04 Dec 2008 17:12:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35310</guid><dc:creator>hvandesa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35310</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve found bits and pieces of this all over the internet without the final piece of the puzzle.&amp;nbsp; I have two Lists from SharePoint: Vendor &amp;amp; Vendor Equipment.&amp;nbsp; I want to create a cascading dropdown using the value selected from vendor to create the secondary data source from Vendor Equipment.&amp;nbsp; I found how to retrieve the data as if it were XML (http://server/site/subsite/_vti_bin/owssvr.dll?Cmd=Display&amp;amp;List={listnumber}&amp;amp;XMLDATA=TRUE) and created a changed event to re-query using the filter value (code follows).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The last piece of the puzzle is the filter of my dropdown doesn&amp;#39;t work because the value I&amp;#39;m filtering on is a lookup field from SharePoint.&amp;nbsp; So while the&amp;nbsp;vendor I&amp;#39;ve picked is &amp;quot;Company ABC&amp;quot; the value in my secondary datasource is &amp;quot;&lt;strong&gt;1;#Company ABC&lt;/strong&gt;&amp;quot;.&amp;nbsp; I&amp;#39;m thinking after doing the q.Execute(); I need to somehow update the attributes of the xml to equal the vendor name, but I can&amp;#39;t find how to do this.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Does anyone have the solution for this, or can point me to the right article?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void vendor_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; SetVendorDetails(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private void SetVendorDetails()&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; FileQueryConnection q = (FileQueryConnection)this.DataConnections[&amp;quot;VendorEquipmentListXML&amp;quot;];&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 OriginalFileLocation = string.Copy(q.FileLocation);&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; q.FileLocation = q.FileLocation + &amp;quot;&amp;amp;FilterField1=Vendor&amp;amp;FilterValue1=&amp;quot; + GetVendorValue();&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; q.Execute();&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; q.FileLocation = OriginalFileLocation;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private string GetVendorValue()&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 nav = this.CreateNavigator();&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 filterValue = (string)nav.SelectSingleNode(&amp;quot;/my:requisitionPriceQuote/my:vendor&amp;quot;, this.NamespaceManager).ValueAs(typeof(string));&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; return filterValue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;</description></item></channel></rss>