Repeating Table in InfoPath 2007 - InfoPath Dev
in

InfoPath Dev

Repeating Table in InfoPath 2007

Last post 09-25-2006 12:49 PM by Ime. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-13-2006 07:07 AM

    • Ime
    • Not Ranked
    • Joined on 09-13-2006
    • United Kingdom
    • Posts 6

    Repeating Table in InfoPath 2007

    Hi All,
    I have a repeating table from a secondary datasource. I have added a radio button so users can either approve or query the row. How can I determine which row the user has click and get the values for that row in c# manage code using infopath 2007.

    Item1 Item2 Item3 Approve/query
    -------------------------------
    r1c1 r1c2 r1c3 A/Q
    r2c1 r2c2 r2c3 A/Q
    r3c1 r3c2 r3c3 A/Q

    many thanks

    regards
    Ime
  • 09-13-2006 04:28 PM In reply to

    Re: Repeating Table in InfoPath 2007

    I haven't tried this in IP2007, but I'm sure it is very much like working with IP2003. If you double-click on the Approve/Query button in the designer and then click to Edit Form Code, it should generate an OnClick event handler for this button click. Once this is generated, you should be able to write code into it to handle the click event. The key here is using the event object that is passed in automatically by InfoPath to determine the context of the button.

    You should be able to do something like e.Source to determine what node this button was clicked in. Once that node is retrieved you should be able to navigate to whatever else nodes you would like to access.

    I hope this helps!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 09-25-2006 12:49 PM In reply to

    • Ime
    • Not Ranked
    • Joined on 09-13-2006
    • United Kingdom
    • Posts 6

    Re: Repeating Table in InfoPath 2007

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