<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7070.aspx</link><pubDate>Sat, 09 Jul 2005 03:21:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7070</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7070</wfw:commentRss><description>Drop downs do not have OnClick handlers. You will need to use the OnAfterChange handler.&lt;br /&gt;&lt;br /&gt;OnBeforeChange and OnValidate both happen while the DOM is readonly.&lt;br /&gt;&lt;br /&gt;- - - - -&lt;br /&gt;&lt;br /&gt;position() will probably have no effect in your XPath. I would think that the following should give you the same results:&lt;br /&gt;&lt;br /&gt;../@name = current()/my:OptionName&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7069.aspx</link><pubDate>Fri, 08 Jul 2005 23:33:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7069</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7069</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;I filtered the dd3 using &lt;br /&gt;../@name = current()/../my:Choice[position()]/my:OptionName&lt;br /&gt;and that did the part of the trick.&lt;br /&gt;i.e , even though that the web service re-populates the dd3's in all rows, however, I am still able to see the selected values of dd3 ( i.e the text does not change .)&lt;br /&gt;&lt;br /&gt;So, I figured, that if the user wants to re-select his dd3 in any of the rows, all I have to do is another query .. ! Ha..&lt;br /&gt;But, I do not have access to the DropDown_onClick () ??? &lt;br /&gt;I tried the OnBeforeChange, but , I am not able DOM is read only ?&lt;br /&gt;&lt;br /&gt;Any tricks here ?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7068.aspx</link><pubDate>Fri, 08 Jul 2005 22:56:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7068</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7068</wfw:commentRss><description>Hi Richard.&lt;br /&gt;&lt;br /&gt;Sorry. I jumped into your discussion at the end when I posted my response. I just went back and read your scenario. I believe that you have a much more difficult situation here.&lt;br /&gt;&lt;br /&gt;(following, dd will stand for 'drop-down'):&lt;br /&gt;&lt;br /&gt;The problem is that when you refresh the web service with the dd2 selection, you are refreshing it for ALL dd3's. That means than the selections from any previous dd3 have been updated to the selections on your current row. This is a problem. That means if you have 5 rows, and on the 5th row you make a selection in dd2, the web service is updated and dd3 is populated. But then go back to dd3 on rows 1-4 and you'll find the same list for all 5 rows. Whoops!&lt;br /&gt;&lt;br /&gt;This, unfortunately, is a restricting design flaw. The only way around it is to redesign.&lt;br /&gt;&lt;br /&gt;Here's what I recommend (but don't know that it's possible because I don't know how the backend of you web service works):&lt;br /&gt;&lt;br /&gt;If possible, dd3 should be bound to a secondary data source (can be web service still if you want) that pulls down ALL the related data to any possible selection in dd2. That means if dd2 can be A, B or C, then dd3 needs to be able to pull A {1, 2, 3}, B {4, 5, 6}, or C {7, 8, 9}. I.E. dd3 will populate with 4, 5 and 6 if dd2 is B.&lt;br /&gt;&lt;br /&gt;The dd3 data cannot keep changing like it currently is. There has to be static data on the back end with some kind of a link to tie dd2 and dd3 together. Thus the dd3 data might be flat and look something like this (two columsn per row):&lt;br /&gt;&lt;pre&gt;A, 1&lt;br /&gt;A, 2&lt;br /&gt;A, 3&lt;br /&gt;B, 4&lt;br /&gt;B, 5&lt;br /&gt;B, 6&lt;br /&gt;C, 7&lt;br /&gt;C, 8&lt;br /&gt;C, 9&lt;/pre&gt;&lt;br /&gt;Or it might be hierarchical and look simthing like:&lt;pre&gt;A&lt;br /&gt;   1&lt;br /&gt;   2&lt;br /&gt;   3&lt;br /&gt;B&lt;br /&gt;   4&lt;br /&gt;   5&lt;br /&gt;   6&lt;br /&gt;C&lt;br /&gt;   7&lt;br /&gt;   8&lt;br /&gt;   9&lt;/pre&gt;&lt;br /&gt;But it must have values representing those in dd2 as well as the choices for dd3 that tie to the dd2 values.&lt;br /&gt;&lt;br /&gt;The big switch here (and I don't know that you can do this -- it won't be so nice if you have something like 100,000 rows or something) is that you have to have a static data source to work with for DD3, not dynamic like it is now.&lt;br /&gt;&lt;br /&gt;This would be entirely different if the cascading list was NOT in a repeating table. Then you wouldn't have this problem.&lt;br /&gt;&lt;br /&gt;Good luck!&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7067.aspx</link><pubDate>Fri, 08 Jul 2005 22:31:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7067</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7067.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7067</wfw:commentRss><description>Hi Greg,&lt;br /&gt;&lt;br /&gt;I am trying to filter the dropdown3 for the current row in the table:&lt;br /&gt;&lt;br /&gt;/dfs:myFields/dfs:dataFields/tns:MarkLogicDistinctQueryResponse/tns:MarkLogicDistinctQueryResult/result/option/subresult[../@name = xdXDocument:get-DOM()/my:myFields/my:Choices/my:Choice[number(count(preceding-sibling::node()) + 1) ]/my:OptionName]&lt;br /&gt;&lt;br /&gt;but that did not work , and neither did this:&lt;br /&gt;&lt;br /&gt;../@name = current()[number(count(preceding-sibling::node()) + 1)]/my:OptionName&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7066.aspx</link><pubDate>Fri, 08 Jul 2005 19:49:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7066</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7066</wfw:commentRss><description>See if the following helps:&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=51dce616335a4ff6a78f2d289baf4651&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=51dce616335a4ff6a78f2d289baf4651&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7065.aspx</link><pubDate>Fri, 08 Jul 2005 06:17:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7065</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7065</wfw:commentRss><description>Hi again,&lt;br /&gt;I think this is an xpath issue with your filter. You need to refer to the correct row in the DOM to get the filtering to reflect the current sibling. There are numerous posts on this issue for tables. I'll ask Agni if he has time to look up the xpath incantation. &lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7064.aspx</link><pubDate>Fri, 08 Jul 2005 02:37:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7064</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7064</wfw:commentRss><description>I modified the return of the web service to include a field whose attribute will be the same as the query parameter . i.e&lt;br /&gt;something like this:&lt;br /&gt;&lt;br /&gt;- &amp;lt;result&amp;gt;&lt;br /&gt;- &amp;lt;option name="dropdown2name"&amp;gt;&lt;br /&gt;  &amp;lt;subresult&amp;gt;John Smith the 4th&amp;lt;/subresult&amp;gt; &lt;br /&gt;  &amp;lt;subresult&amp;gt;Ellen Ross&amp;lt;/subresult&amp;gt; &lt;br /&gt;  &amp;lt;subresult&amp;gt;John Smith the 1th&amp;lt;/subresult&amp;gt; &lt;br /&gt;  &amp;lt;/option&amp;gt;&lt;br /&gt;  &amp;lt;/result&amp;gt;&lt;br /&gt;&lt;br /&gt;and I set the entry of the dropdown3 with filter as:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;/dfs:myFields/dfs:dataFields/tns:QueryResponse/tns:QueryResult/result/option/subresult[../@name = xdXDocument:get-DOM()/my:myFields/my:Choices/my:Choice/my:OptionName]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is portion of the code for the DropDown2 After change :&lt;br /&gt;&lt;br /&gt;IXMLDOMNode fieldValue1 = thisXDocument.DOM.selectSingleNode("/my:myFields//my:OptionName");&lt;br /&gt;IXMLDOMNode queryValue1 = wsDOM.selectSingleNode("//dfs:myFields/dfs:queryFields/tns:DistinctQuery/tns:st1");&lt;br /&gt;queryValue1.text = fieldValue1.text;&lt;br /&gt;DataObject objDO = null;&lt;br /&gt;objDO = thisXDocument.DataObjects["DistinctQuery"];&lt;br /&gt;objDO.Query();&lt;br /&gt;&lt;br /&gt;The first row in the table works well and the dropdown3 gets changed for each change in dropdown2.&lt;br /&gt;However, once you add the second row in the table,, and select a different dropdown2,  the results of dropdown3 is the same as the values for the dropdown3 in the first row..?&lt;br /&gt;&lt;br /&gt;using the debugger, I saw that fieldvalue1.text is not that of current row but belongs to the first row. ?? &lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7063.aspx</link><pubDate>Thu, 07 Jul 2005 19:36:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7063</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7063.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7063</wfw:commentRss><description>Hi Richard,&lt;br /&gt;Me too !!! :)  Anyway, Googling is great. Almost rhymes with Ogling. Makes you wonder if they weren't thinking the answer to MS's question: where do you want to go today? Was: Go Ogle. Not sure in what context though. &lt;br /&gt;&lt;br /&gt;Anyway, to get to your question: you can change your Web service to return only a set number of values or filter them in the dropdown.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7062.aspx</link><pubDate>Thu, 07 Jul 2005 15:35:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7062</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7062.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7062</wfw:commentRss><description>Hi Patrick,&lt;br /&gt;&lt;br /&gt;I run on tea and coffee.. and  googling .. !!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Patrick Halstead&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Richard,&lt;br /&gt;What's with all of the !! and ?? marks? Did you just drink a slurpee or something from 7-11?  :)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7061.aspx</link><pubDate>Thu, 07 Jul 2005 05:26:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7061</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7061</wfw:commentRss><description>Hi Richard,&lt;br /&gt;What's with all of the !! and ?? marks? Did you just drink a slurpee or something from 7-11?  :)&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7060.aspx</link><pubDate>Thu, 07 Jul 2005 02:11:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7060</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7060.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7060</wfw:commentRss><description>Hi , Thanks for your response..&lt;br /&gt;&lt;br /&gt;Your solution suggests that I have to populate the secondary xml ( i suppose that is a datasource with no controls in the page  or is it an xml file ? please confirm.) How do i do that.??&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I was not planning to have the web service to return all the values of dropdown 3 for each values of dropdown2.. !!&lt;br /&gt;because that may become slow, &lt;br /&gt;I want to call the webservice only for the selected dropdown2 value.!&lt;br /&gt;Unless you suggest that this works anyway ??&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7059.aspx</link><pubDate>Wed, 06 Jul 2005 18:27:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7059</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7059.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7059</wfw:commentRss><description>Hi Richard,&lt;br /&gt;&lt;br /&gt;Map the third dropdown two a secondary xml with the structure similar to the following one&lt;br /&gt;&amp;lt;Dorpdown3Values&amp;gt;&lt;br /&gt;&amp;lt;Node dropdown2value="dd2v1"&amp;gt;  &lt;br /&gt;		&amp;lt; Dorpdown3Value&amp;gt;value1&amp;lt;/ Dorpdown3Value&amp;gt;&lt;br /&gt;		&amp;lt; Dorpdown3Value&amp;gt;value2&amp;lt;/ Dorpdown3Value&amp;gt;&lt;br /&gt;&amp;lt;/Node&amp;gt;&lt;br /&gt;&amp;lt;Node dropdown2value="dd2v2"&amp;gt;  &lt;br /&gt;&amp;lt; Dorpdown3Value&amp;gt;value1&amp;lt;/ Dorpdown3Value&amp;gt;&lt;br /&gt;		&amp;lt; Dorpdown3Value&amp;gt;value2&amp;lt;/ Dorpdown3Value&amp;gt;&lt;br /&gt;&amp;lt;/Node&amp;gt;&lt;br /&gt;&amp;lt;/Dorpdown3Value&amp;gt;&lt;br /&gt;&lt;br /&gt;a.	You will create a “&amp;lt;Node&amp;gt;” for each dropdown2&lt;br /&gt;b.	You will fill in Dropdown3Values when you select dropdown2 value(When the webservice is called)&lt;br /&gt;c.	Bind Dropdown3 to this new xml and filter “&amp;lt; Dorpdown3Value&amp;gt;” &lt;br /&gt;based on the dropdown2Value “&amp;lt;Node dropdown2value="dd2v2"&amp;gt;  value.&lt;br /&gt; &lt;br /&gt;So now &lt;br /&gt;1. When you change a value in dropdown2, OnAfterchange for dropdown2 gets fired.&lt;br /&gt;2. In OnAfterChangeEvent call the webservice.&lt;br /&gt;3. Fill the data into the above xml.&lt;br /&gt;4. You should be able to see the values in the dropdown.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7058.aspx</link><pubDate>Wed, 06 Jul 2005 08:07:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7058</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7058</wfw:commentRss><description>It's easier to do than that. I'll ask someone else to send the link.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7057.aspx</link><pubDate>Wed, 06 Jul 2005 02:20:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7057</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7057</wfw:commentRss><description>I was not able to find any post there, however, it seems that one could have an intermediate field where the webservice maps to.&lt;br /&gt;&lt;br /&gt;then , Onafterchange event on the 2nd dropdown:&lt;br /&gt;&lt;br /&gt;1- call the query , wait for the data to be there in the intermediate field, &lt;br /&gt;2- take the data from the intermediate field and populate the dropdown .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/7056.aspx</link><pubDate>Sun, 03 Jul 2005 07:45:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7056</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7056</wfw:commentRss><description>Hi Richard,&lt;br /&gt;I think this is the same as a similar problem. You need to restrict the filter to the specific row. I believe there is a post on the Microsoft blog that talks about this. It will require a tricky xpath in your filter, but it is possible. Good luck researching further.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item></channel></rss>