OnRepeatedGroupAdded ?? - InfoPath Dev
in

InfoPath Dev

OnRepeatedGroupAdded ??

Last post 10-16-2006 08:17 AM by Eric. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-10-2006 02:10 PM

    • Eric
    • Not Ranked
    • Joined on 10-10-2006
    • Posts 24

    OnRepeatedGroupAdded ??

    Hello,

    I am trying to add an action handler for when a row is added to a repeating table by a form user. I would like it to be like an OnClick() for a button.

    Any hints or pointers to previous articles would be appreciated.
    thanks,

    - Eric

    PS The idea is to keep track of the number of rows added to a repeating table and stop the user from adding more than a set number (say 5).
  • 10-11-2006 05:38 AM In reply to

    Re: OnRepeatedGroupAdded ??

    Hi Eric,

    To limit the number of rows in a repeating table,just go thru the following link.
    http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3233&SearchTerms=maximum,repeating,rows

    regards,
    Abhishek
  • 10-11-2006 12:08 PM In reply to

    • Eric
    • Not Ranked
    • Joined on 10-10-2006
    • Posts 24

    Re: OnRepeatedGroupAdded ??

    Thanks Abhishek,

    I will try the solution with the XSD file.

    I'm still curious if an event exists that occurs when a new row is added to a repeating table - something that could be checked via scripting as the form is being filled out.

    Also - if such an event exists could it be checked in the properties section of the repeating row under rules, conditions, actions in the InfoPath IDE?

    thanks,

    -Eric
  • 10-12-2006 03:07 PM In reply to

    Re: OnRepeatedGroupAdded ??

    Eric,

    The event you are looking for is the OnAfterChange event for the repeating node. To access it, double-click the node in the Data Source task pane, go to Data Validation and Event Handlers, select OnAfterChange from the drop-down menu and click Edit Code.

    It's not quite like an OnClick event, because you have to do filtering sometimes, but this should do what you are looking for.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 10-16-2006 08:17 AM In reply to

    • Eric
    • Not Ranked
    • Joined on 10-10-2006
    • Posts 24

    Re: OnRepeatedGroupAdded ??

    Hello Matt,

    Thanks for this clear and beautiful explanation - straight to the point.

    Much appreciated.

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