0

I am developing the SharePoint Portal in 2010 where i will be using a Dropdown with values in it. These Values will depend on the group to which the user belongs.

For Eg.

If Drop Values are A, B , C, D, E

and there is a Group XYZ

If User A logs in & he belongs to Group XYZ the Drop down should show: A B E

Else the drop down should show : C, D

Anybody having an idea on how to do it. Please Share it.

Thanks Kishan Srivastava

Kishan
  • 117
  • 1
  • 3
  • 16
  • Do you need to know how to handle user groups, the drop down, or both? – ramsey_tm Apr 02 '12 at 21:45
  • Thanks for the reply...!! I want to create this functionality within the library of SharePoint using a column(having drop down values). – Kishan Apr 02 '12 at 22:27

3 Answers3

0

You can use the SPServices code in this answer to understand if a user belongs to a group.

Community
  • 1
  • 1
Paul Leigh
  • 1,231
  • 7
  • 7
  • Thanks Paul I have done this using the Lookup by creating the 2 different group and giving them a Item based permissions. But anyways thanks for your help, the way u suggested is also good...!!! – Kishan Apr 04 '12 at 17:12
0

agreed with SPServices method it has very good for me

brock.samsom
  • 43
  • 1
  • 1
  • 7
0

A 'no code' way would be to have the column as a lookup column into another list which.was security trimmed at the item level. Or you could have folders in this list and use these as the security containers for the items. Code ways involve the use of client side scripting. I'd recommend the spservices codeplex library to act as the javascript wrapper to the Sharepoint webservices. I'll think this through a bit more if the first way doesn't work.

Ciaran
  • 543
  • 5
  • 14
  • Thanks @Ciaran...!! I Tried using the spservices codeplex library but still i need to select the extra option which the user belong. This is an extra task that i want to skip. What I want is when a user logs the Group to which the user belongs should be automatically identified & the drop down values should be populated with value that correspond to that particular group. For Eg. If Drop Values are A, B , C, D, E and there is a Group XYZ If User A logs in & he belongs to Group XYZ the Drop down should show: A B E Else the drop down should show : C, D – Kishan Apr 03 '12 at 17:14
  • Hi, I see you asked the same question on Sharepoint.stackexchange. the answer there expands on mine and is very good. Go with that one. – Ciaran Apr 04 '12 at 21:37
  • Thank You..!! I have Done with it..!! – Kishan Apr 04 '12 at 23:12