<?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 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/8341.aspx</link><pubDate>Thu, 24 Nov 2005 20:20:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8341</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8341.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8341</wfw:commentRss><description>I think this should work :&lt;br /&gt;1- I have to disconnect dd3 entry from the webservice. ( How can I do this ? )&lt;br /&gt;2- OnAfterchange of dd2 call the webservice, and with the result replace the dd3 node of that row:&lt;br /&gt;&lt;br /&gt;objDO.Query();&lt;br /&gt;&lt;br /&gt;IXMLDOMNode fieldValue2 = thisXDocument.DOM.selectSingleNode("/my:myFields//my:Choices/my:Choice["+System.Convert.ToString(currow)+"]/my:SelectBy");&lt;br /&gt;&lt;br /&gt;now fieldvalue2 points to my dd3 at current row,&lt;br /&gt;&lt;br /&gt;wsDOM.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:MarkLogicDistinctQueryResponse/tns:MarkLogicDistinctQueryResult/result/option/subresult")&lt;br /&gt;&lt;br /&gt;and this points to the results from web service.&lt;br /&gt;How can I replace the fieldValue2 with this ?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Repeating Table with 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/8340.aspx</link><pubDate>Thu, 24 Nov 2005 19:43:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8340</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8340.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8340</wfw:commentRss><description>In my entry for the dd3 , I have this:&lt;br /&gt;&lt;br /&gt;/dfs:myFields/dfs:dataFields/tns:MarkLogicDistinctQueryResponse/tns:MarkLogicDistinctQueryResult/result/option/subresult[../@name = current()/../my:Choice[position()]/my:OptionName]&lt;br /&gt;&lt;br /&gt;but what this does, effects all dd3s with the current one., notice that since I am calling web service each time, I am selecting dd2, therefore, the results coming back can only contain values related for that row.&lt;br /&gt;</description></item><item><title>Re: Repeating Table with 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/8339.aspx</link><pubDate>Thu, 24 Nov 2005 19:08:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8339</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8339.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8339</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I am not sure how you do it exactly.  One way to do this in my mind would be to have a OnAfterChange event triggered by dd1 and call a WS to fill dd2 and another behind dd2 to fill dd3.  If you are doing this, you could use the code that I posted above.&lt;br /&gt;Otherwise, in general, to get IP to point to the right instance of a repeating table, you need to use current() or to use code such as: &lt;br /&gt;IXMLDOMNode oNode = thisXDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[n]/my:field1");&lt;br /&gt;to point to field1 of the row # n.&lt;br /&gt;&lt;br /&gt;Hope that it helps.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Repeating Table with 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/8338.aspx</link><pubDate>Thu, 24 Nov 2005 18:30:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8338</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8338</wfw:commentRss><description>Hi Franck,&lt;br /&gt;I did not understand your solution.&lt;br /&gt;I am using code , but it is rather mixed with bunch of stuf , not easy to show.&lt;br /&gt;basically the real problem is the way the webservice results gets linked to a field. since the webservice results are not row dependant , then a call to the webservice will effect all of the rows.&lt;br /&gt;The only I can think of, is when I call the web service, pass the row number, so when the results comes in I would have a row number as an attribute. then , have the results fill up an xml file, each time the row attribute changes ,the results will replace the content of the xml file for that row.. so the file gets to update each time the web service is called for a particular row, without effecting the previous results for the other rows. then , have a data connection from this file to the dd3.&lt;br /&gt;&lt;br /&gt;What do you think ?&lt;br /&gt;</description></item><item><title>Re: Repeating Table with 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/8337.aspx</link><pubDate>Thu, 24 Nov 2005 03:22:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:8337</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/8337.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=8337</wfw:commentRss><description>Hi Richard,&lt;br /&gt;&lt;br /&gt;So, you are using code for this, right?  Can you post?&lt;br /&gt;If you are using the OnAfterChange event to trigger the WS call, rather than absolute XPath, are you using code such as:&lt;br /&gt;IXMLDOMNode oNode = e.Site.selectSingleNode("..");&lt;br /&gt;IXMLDOMNode oField1 = oNode.selectSingleNode("my:field1");&lt;br /&gt;IXMLDOMNode oField2 = oNode.selectSingleNode("my:field2");&lt;br /&gt;IXMLDOMNode oField3 = oNode.selectSingleNode("my:field3");&lt;br /&gt;where field1 would be linked to dd1, field2 t dd2 and field3 to dd3.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché&lt;br /&gt;InfoPathDev</description></item><item><title>Repeating Table with 3 DD , Dynamic Query</title><link>https://www.infopathdev.com:443/forums/thread/5129.aspx</link><pubDate>Thu, 24 Nov 2005 01:48:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5129</guid><dc:creator>Richard</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5129.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5129</wfw:commentRss><description>A Repeating table has 3 drop downs in each row.&lt;br /&gt;dd1, dd2, dd3&lt;br /&gt;&lt;br /&gt;on selecting dd1, a query is made to the web service using query fields filtered by value of dd1 and the results will populate dd2.&lt;br /&gt;&lt;br /&gt;same thing for dd2 and dd3.&lt;br /&gt;this works fine, &lt;br /&gt;now, we add the next row in the table, and select dd1, dd2, and we seem to have correct populated results in row 2 also..&lt;br /&gt;&lt;br /&gt;But, if one goes back to row 1.. you see that dd3 has the same list as dd3 for row 2.. ??&lt;br /&gt;This is because the query to the web service populates all dd3's the same way ?? , &lt;br /&gt;&lt;br /&gt;What is a good way to accomplish this ??&lt;br /&gt;</description></item></channel></rss>