Getting value of a field in a repeating table - InfoPath 2007 - InfoPath Dev
in

InfoPath Dev

Getting value of a field in a repeating table - InfoPath 2007

Last post 03-25-2008 07:34 AM by Clay Fox. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-19-2008 06:06 AM

    Getting value of a field in a repeating table - InfoPath 2007

    Hi,

    I have a repeating table with 4 columns. One of the columns contains a button. Whenever the user clicks the button on the click event I want to get the value of another cell on the same row where the button was clicked. I am using Infopath 2007 and C#.

    I tried this but it always gives me the value for the first row.

    public void CTRL603_5_Clicked(object sender, ClickedEventArgs e)
    {
     XPathNavigator temp = e.Source.SelectSingleNode("/my:LtfForm/my:group1/my:RepeatingAllocations/my:field94", this.NamespaceManager);
     string myValue = temp.Value;
    }
     

    Desperately need help.

  • 03-19-2008 09:09 AM In reply to

    Re: Getting value of a field in a repeating table - InfoPath 2007

    You probably need to look at the current() function

  • 03-25-2008 03:29 AM In reply to

    Re: Getting value of a field in a repeating table - InfoPath 2007

    HI Clay,

     I am new to InfoPath 2007. when you say that I need to look at the current() function I have no clue what you mean. Can you please provide me with a line of code using this current() function? I am about to loose my head here, please help.

    Thanks

    Mario

  • 03-25-2008 07:34 AM In reply to

    Re: Getting value of a field in a repeating table - InfoPath 2007

    I meant for you to search on current().

    Here is one post I saw. http://www.infopathdev.com/forums/p/6759/25056.aspx#25056

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