简体   繁体   中英

Populating Drop down on the basis of User Group

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: ABE

Else the drop down should show : C, D

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

Thanks Kishan Srivastava

您可以在此答案中使用SPServices代码来了解用户是否属于组。

同意SPServices方法对我来说非常好

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM