in

InfoPath Dev

Getting the current row of a repeating table (master)

Last post 06-19-2008 10:07 AM by Greg Collins. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-17-2008 01:37 AM

    Getting the current row of a repeating table (master)

    I know that some other posts exist on the topic but unfortunately neither works for me /addresses my need.

    I have a master repeating table as in the example

     ID           Name           Surname

    1             Joe               Brown

    2             Peter            Smith

    Now what I want is to be able to identify the ID of the currently selected row via a button click event or rules.  I read that the current() function should address this need, however, I cannot figure out how to use it.

    Your assistance would be greatly appreciated

  • 06-17-2008 03:58 PM In reply to

    Re: Getting the current row of a repeating table (master)

    You probably want to take a look at these example forms:

    Identifying a Filtered Table Row Number, v1.0

    Select a Master Table Row via Code, v1.0

    Visit my Web site:

    http://www.braintrove.com

    Greg Collins / Microsoft MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 06-17-2008 11:49 PM In reply to

    Re: Getting the current row of a repeating table (master)

    Thank you Mr. Collins for your prompt reply.  I had looked at these examples previously, however, I believe they are for InfoPath 2003 and I am using InfoPath 2007.  If I am not mistaken, the only options available for InfoPath 2007 are rules (which only trigger upon a change) and managed (C#/VB.NET) code.

  • 06-19-2008 10:07 AM In reply to

    Re: Getting the current row of a repeating table (master)

    Yes, those examples were written before InfoPath 2007 existed. However, If you are familiar with coding you should be able to convert from JScript to C# pretty easily. You can also still use JScript in IP07 (if you really want to).

    Visit my Web site:

    http://www.braintrove.com

    Greg Collins / Microsoft MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.