programmatically change permisstion of an item in a list - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

programmatically change permisstion of an item in a list

Last post 11-24-2008 01:48 PM by pnewhook. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-03-2008 11:52 AM

    • s42bm
    • Top 500 Contributor
    • Joined on 04-21-2008
    • Posts 32

    programmatically change permisstion of an item in a list

     What I'm going to do is to change the permission of an item thought a workflow when it's being added to a list. Only the owner and some specified

     people are allowed to view its content, other people are still capable to add new items though. Does anyone know how to solve this kind of

    problems? Thanks!

  • 11-04-2008 09:19 PM In reply to

    • ravig
    • Top 500 Contributor
    • Joined on 06-21-2008
    • Posts 27

    Re: programmatically change permisstion of an item in a list

    Hi,

    Are you using User Groups in your form, If you are using are you creating User Groups in the InfoPath Form itself or other way.

    If you are using User Groups in InfoPath form itself, you can set a onload condition in code.

    Just Verify whether the current user is in the Group or not onload, If he is in the group set a field say field1 (Put a field in Schema but not in UI)  value to 1 other wise 0.

    Then Conditional formatting on your item/section such that to disable the section if the field value is not equal to 1.

     

    Ravi G
  • 11-05-2008 04:56 AM In reply to

    • s42bm
    • Top 500 Contributor
    • Joined on 04-21-2008
    • Posts 32

    Re: programmatically change permisstion of an item in a list

     Thanks for the reply.

    I'm not going to use user group in the form. The situation is that everyone has access to this form library or item list. Once the record is uploaded on the web through form, it becomes accessible only to its creator and other two specified people. Other users can't even view the content but just the title.

  • 11-24-2008 01:48 PM In reply to

    Re: programmatically change permisstion of an item in a list

    take a look at this project. http://www.codeplex.com/SPDActivities it's a bunch of workflow activites. The permission activities work quite well. You can either deploy them and use them in SPD or just examine the code.

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