How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones? - InfoPath Dev
in

InfoPath Dev

How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones?

Last post 09-20-2010 01:44 AM by Jimmy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-18-2008 12:16 AM

    How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones?

    It's about a repeating table for a product order list.

    Default Rows: When opening the form template, there are some rows set by default.
    Users shall not be able to delete the default rows.

    New Rows: But users may insert row to the repeating table to add items not included in the default list.
    And users can delete those new rows.

    How to it?

    = = = = = = = =

    If it's not possible to allow insert/delete rows while keeping the default ones, is there a way to allow insert only, but not delete?

    Filed under:
  • 02-18-2008 07:00 AM In reply to

    Re: How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones?

    A couple different options:

    Use two repeating tables back to back.

    The first only shows you default rows and does not allow ins and del in the properties.

    Place a second repeating table which allows insert and delete but only shows new rows.

     

    Another option would be to turn off the user's ins and del and just use code and your own buttons.

    I think the first would work fine though. Typically they might ins and then decide to delete.

  • 09-20-2010 12:49 AM In reply to

    • firouz
    • Top 500 Contributor
      Female
    • Joined on 02-24-2009
    • Iran
    • Posts 51

    Re: How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones?

    Is there any way that they cant delete all rows. in my case, users insert rows, I want them not to allow delet the inserted rows.

  • 09-20-2010 01:44 AM In reply to

    Re: How to allow users to insert/delete new rows of a repeating table while prevent them from deleting the default ones?

    InfoPath doesn't have built-in functionality to do this, but with qRules, you can provide a button to allow users to add rows to your form and not give them a way to remove rows.

    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.