Prevent users from deleting rows in repeating table, but OK to rows. - InfoPath Dev
in

InfoPath Dev

Prevent users from deleting rows in repeating table, but OK to rows.

Last post 10-21-2009 03:02 PM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-16-2009 09:56 AM

    Prevent users from deleting rows in repeating table, but OK to rows.

    I have an infopath form connected to an access db and I have a repeating table in infopath. How do I prevent the users from accidently hitting the delete key and submitting to the database and deleting the record? Of course I want them to be able to add new records.

    Another dilema: And what is the user inserts a row by mistake, shouldn't there by a  delete option or a perhaps a field with a void checkbox and some rules.

  • 10-21-2009 03:02 PM In reply to

    Re: Prevent users from deleting rows in repeating table, but OK to rows.

    To prevent the deletion, you can do one of two things:

    1. Manually edit the myschema.xsd file and set minOccurs="1" for the specific table row node.

    2. Write code which determins whether the row can be deleted and not allow the deletion if it can't.

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