Hello,
I am new in infopath, i am giving numbers to the repeating tables, when user click insert item than a new table comes and its number will become equipmentno: 2 and increasing, i want to take this number when the dropdownlist onchange event . i can get only table numbers with:
string
EquipmentNo ="";XPathNavigator nav = MainDataSource.CreateNavigator();
XPathNodeIterator iter = nav.Select("/my:myFields/my:group3/my:group4/my:EquipmentNo", NamespaceManager);while (iter.MoveNext())
{
EquipmentNo = iter.Current.Value;
}
but this just give me the last euipmentno. now i want to take the table number which i change the dropdownlist value.
----------------------
with button click event i can get the repeating table's number:
public void CTRL151_7_Clicked(object sender, ClickedEventArgs e)
{
string str = e.Source.SelectSingleNode("my:EquipmentNo", NamespaceManager).Value;
}
but i want to get this value in dropdownlist changed event. public void EquipmentDDL_Changed(object sender, XmlEventArgs e)
{
}
Any help would be appreciated , thanks,
Ali