Repeating Tables - Clear rows - InfoPath Dev
in

InfoPath Dev

Repeating Tables - Clear rows

Last post 06-27-2011 09:21 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-27-2011 06:50 AM

    Repeating Tables - Clear rows

    Okay, so I was wondering if anyone has had to do this...What I have is 3 sections that each contain a repeating table in them. Based on a selection from a previous question, each section will show up one at a time. If the user adds data to either section and changes their selection above, I want the section to be set back to normal. For all the fields, its good because I can use the action rule that clears the fields. But, if you added any rows to the table, I cannot get the table to go back to just one row, it still shows the "X" rows that the user created previously. Any help would be appreciated. Thank you!

  • 06-27-2011 07:36 AM In reply to

    Re: Repeating Tables - Clear rows

    There is a codeless hack you can use to delete all of the rows in a repeating group:

    http://alecpojidaev.wordpress.com/2009/09/10/how-to-remove-initial-row-in-repeating-tables/

    Aside from that, the only other options are to write code, or you can use qRules, which lets you remove all the rows (or all except the first row if you want) with a single command.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 06-27-2011 08:22 AM In reply to

    Re: Repeating Tables - Clear rows

    Thanks for the quick response Jimmy. I think I had stumbled across that after posting. It does work, but I would like it to just kind of reset the table back to one row. Guess there is no way to really do that, so...Thanks for the reply. We can put code into our forms, so until there is a better solution out there, I will just have to come up with something to alert users. Thanks again for the reply.

  • 06-27-2011 09:21 AM In reply to

    Re: Repeating Tables - Clear rows

    Well, as I said, qRules will allow you to easily do precisely what you describe without writing and maintaining your own code, and it provides a whole bunch of other features to fill in the "gaps" in InfoPath's functionality.  SharePoint, etc. will treat a qRules form like a form with code, so if that is a limiting factor, I don't think there is any solution to completely fill your requirement.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.