Locking (read only) a repeating section - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Locking (read only) a repeating section

Last post 09-07-2005 01:20 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-05-2005 07:41 AM

    • lp12
    • Not Ranked
    • Joined on 05-04-2005
    • Israel
    • Posts 5

    Locking (read only) a repeating section

    Hi all,

    I have a form with several fields including some closed in a repeatng section.
    i added a button that by user role can change the status of the controls to REad-only
    what i want to acheive is that IP will let me "lock" each instance of a repeating sec seperatly (now all the instaces are closing).
    Is it possible to do it?
    Thanks a lot in advance...
  • 09-07-2005 01:20 AM In reply to

    Re: Locking (read only) a repeating section

    Hi Lp12,
    Very interesting question. I'm not sure if you can use xdExpression programmatically to do this at runtime or not, but you should try it via the Properties->Display->Conditional wizard. Search on xdExpression in this forum. You might be able to do it, but you'll likely have to write a little function to return true or false depending on user role and row id. The function will have to calculate that.

    Another option is to create two sections inside your repeating section - one for read-only and one for non-read-only and use xdExpression to control which one is displayed based on id of section.

    Let us know if this works. I'm optimisitic, but don't have time to prototype right now. Good luck!

    Patrick Halstead [InfoPath MVP]
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.