Hi,
I use c# for coding!
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
How I can make this? Agni has give me some idea in a previous post he has write:
quote:
Hi,
If the button is in the row, "e.Source" will get you the selected row.
If the button is at the bottom you can use
//xPath should poin to the Repeating node
IXMLDOMNode oNodes = getNode("/RootNode/RepeatingNode");]
//"CTRL22":- you will get this when you see the view.xsl file for that particular repeating table
int iMemberId = Convert.ToInt32(thisXDocument.GetNamedNodeProperty(oNodes, "CTRL22", "-1"));
This above line will get you the selected the rowID. With that row id you can get the node.
Agni
InfoPathDev India
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 :
getNodes doesn't exist in the class or in the namespace ...
Thanks for your help!
++
Thierry
Every moment hesitated is a moment gone for life!!! Think about it
Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
merci de lire ceci