Disable one row of a repeating table at a time, once a approver clicks approve, but still allow a user to Insert additional rows in the future. - InfoPath Dev
in

InfoPath Dev

Now you can find InfoPathDev on YouTube and Twitter!
Find Qdabra on Facebook

Disable one row of a repeating table at a time, once a approver clicks approve, but still allow a user to Insert additional rows in the future.

Last post 01-31-2010 09:27 PM by Qazi Anis. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-28-2010 07:37 AM

    • Michael71
    • Top 25 Contributor
      Male
    • Joined on 10-07-2006
    • Mclean, Virginia-USA
    • Posts 269

    Disable one row of a repeating table at a time, once a approver clicks approve, but still allow a user to Insert additional rows in the future.

     

    How do I allow one row of a repeating table at a time to be disabled/Read-only once a approver clicks an approve button, but still allow a user to Insert additional rows in the future. I understand that I must set a flag text field for the button click, but it even possble to disable only one row of a table at a time.Thanks.

  • 01-30-2010 05:31 AM In reply to

    Re: Disable one row of a repeating table at a time, once a approver clicks approve, but still allow a user to Insert additional rows in the future.

    I don't believe it is possible to disable a specific row -- that conditional formatting seems to be at the control level.

    Sometimes I use multiple tables. For example, if I have a field called Locked and the default is False, I would have two tables on the form. One only displays items where Locked = True and it won't allow users to add or remove rows. The other table would display items where Locked = False, and allows users to add and remove.

    Hilary Stoupa
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 01-31-2010 09:27 PM In reply to

    Re: Disable one row of a repeating table at a time, once a approver clicks approve, but still allow a user to Insert additional rows in the future.

    by disabling if you mean the user should not be able to change the contents that is fine, but by disabling if you mean the the user should not be able to delete the row then there is going to be code involved. let us go for the first one.

    have a button(approved) dropped in side the repeating table that sets some field (say field_approved) to 1.  on each field of your repeating table write a conditional formating disabling the field is field_approved = 1

    Qazi Anis
    Programmer Analyst
    Bitwise Solutions
    my blog
Page 1 of 1 (3 items)
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.