<?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: Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/13934.aspx</link><pubDate>Wed, 09 Nov 2005 22:15:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13934</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13934.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13934</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;Sorry for being late!&lt;br /&gt;Here is one of the ways you can get position of current row,&lt;br /&gt;&lt;br /&gt;//Get the list of nodes that are preceeding the present node&lt;br /&gt;IXMLDOMNodeList preceedingNodesList = thisNode.selectNodes("preceding-sibling::RepeatingNode");&lt;br /&gt;//Get the count of the preceeding nodes and add 1 to get the position of this node&lt;br /&gt;int position= preceedingNodesList.length + 1;&lt;br /&gt;&lt;br /&gt;Hope this helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/13933.aspx</link><pubDate>Wed, 09 Nov 2005 13:35:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13933</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13933</wfw:commentRss><description>ok no problem thanks a lot!&lt;br /&gt;&lt;br /&gt;I have found another way that work great now!&lt;br /&gt;&lt;br /&gt;But if Agni can explain me his solution I will be very happy!&lt;br /&gt;&lt;br /&gt;Agni if your hear me..&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/13932.aspx</link><pubDate>Wed, 09 Nov 2005 06:22:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13932</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13932</wfw:commentRss><description>Nope, sorry.  Maybe Agni could jump back on this one...</description></item><item><title>Re: Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/13931.aspx</link><pubDate>Tue, 08 Nov 2005 07:40:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13931</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13931</wfw:commentRss><description>Hi Franck,&lt;br /&gt;&lt;br /&gt;Merci pour la réponse! &lt;br /&gt;&lt;br /&gt;I was mistaken (je me suis trompé) I can use e.source for select my correct node and make my replacechild with it!&lt;br /&gt;&lt;br /&gt;But I don't know how to know my position? Is for another field that I need to find it!&lt;br /&gt;&lt;br /&gt;with e.source that don't seems to work that send me always :"-1"&lt;br /&gt;&lt;br /&gt;Any idea?&lt;br /&gt;&lt;br /&gt;Thanks &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item><item><title>Re: Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/13930.aspx</link><pubDate>Mon, 07 Nov 2005 17:59:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13930</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13930.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13930</wfw:commentRss><description>Hi Thierry,&lt;br /&gt;&lt;br /&gt;I am confused here.  Isn't "getNode" a function somewhere that has code in it around: e.Source.select...?&lt;br /&gt;&lt;br /&gt;Franck</description></item><item><title>Position of current node</title><link>https://www.infopathdev.com:443/forums/thread/12664.aspx</link><pubDate>Mon, 07 Nov 2005 15:31:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12664</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12664.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12664</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;I use c# for coding!&lt;br /&gt;&lt;br /&gt;I have a master/detail table and I need to know which row it is when I click on the button! the button is in detail table&lt;br /&gt;&lt;br /&gt;How I can make this? Agni has give me some idea in a previous post he has write:&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;br /&gt;Hi,&lt;br /&gt;If the button is in the row, "e.Source" will get you the selected row. &lt;br /&gt;&lt;br /&gt;If the button is at the bottom you can use &lt;br /&gt;&lt;br /&gt;//xPath should poin to the Repeating node&lt;br /&gt;IXMLDOMNode oNodes = getNode("/RootNode/RepeatingNode");]&lt;br /&gt;&lt;br /&gt;//"CTRL22":- you will get this when you see the view.xsl file for that particular repeating table&lt;br /&gt;int iMemberId = Convert.ToInt32(thisXDocument.GetNamedNodeProperty(oNodes, "CTRL22", "-1"));&lt;br /&gt;&lt;br /&gt;This above line will get you the selected the rowID. With that row id you can get the node.&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India &lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;I don't think I can use e.source this time but for the other method that makes me an error on getNode that say : &lt;br /&gt;&lt;br /&gt;getNodes doesn't exist in the class or in the namespace ...&lt;br /&gt;&lt;br /&gt;Thanks for your help!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Every moment hesitated is a moment gone for life!!! Think about it</description></item></channel></rss>