Repeating Table-Add,delete based on condition - InfoPath Dev
in

InfoPath Dev

Repeating Table-Add,delete based on condition

Last post 12-13-2005 07:04 PM by Abhishek. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-13-2005 07:23 AM

    Repeating Table-Add,delete based on condition

    Hi friends,

    I want to implement the following situation.
    I have a repeating table that contains 5 rows.I have a text box which contains the value 3.Based on the value of this textbox,I should not be able to add,delete or modify any row before row3.

    I should only be able to add or delete or modify any row after row 3.
    Any easy way or code sample to implement this one???


    Thanks in advance,
    Regards,
    Abhishek



  • 12-13-2005 08:19 AM In reply to

    Re: Repeating Table-Add,delete based on condition

    Ok, here's what I would do.

    You will have two repeating tables. Format these so that sit one on top of the other and look like one table. On the top table make every field read-only and in the bottom table make the fields normal. I don't know exactly how you generate your table or if a user enters it, but you will want to put the non-editable rows in the top table and the editable rows in the bottom table. You will probably put the code to move the rows in the OnAfterChange() of the textfield that determines how many rows are editable or not.

    This will require some code to move the rows - let me know if you need some examples. Hope this helps!

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 12-13-2005 07:04 PM In reply to

    Re: Repeating Table-Add,delete based on condition

    Hi MFaus,
    Thanks for the wonderful solution. Simple yet tooo good.
    I know how to write code to transfer the data from 1 repeating tble to another.Will do that.
    In case of any problem,Will ask u.
    Thanks a lot.
    Regards,
    Abhishek
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.