in which repeating table am i now with changing dropdownlist value? - InfoPath Dev
in

InfoPath Dev

in which repeating table am i now with changing dropdownlist value?

Last post 09-19-2008 01:33 AM by alicoskun. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-18-2008 06:54 AM

    in which repeating table am i now with changing dropdownlist value?

    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

  • 09-19-2008 01:33 AM In reply to

    Re: in which repeating table am i now with changing dropdownlist value?

    With this code i can take the table's number  in dropdownlist change event;

    XPathNavigator xNavigator = e.Site;

    bool bParent = xNavigator.MoveToParent();

    // Get Reference to the Gross Value

    XPathNavigator xField = xNavigator.SelectSingleNode("my:EquipmentNo", this.NamespaceManager);

    string sss= xField.InnerXml;

     

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.