开发者

Is it possible to compare current user to a SharePoint list/group and switch views if they belong?

So I have a list of managers in my SharePoint site, and I am able to get the current user by using a web service and storing their name into a control. Is it possible to compare this name to everyone in that list/group to check if they are a manager so that the form can switch views to the manager section?

Right now I created a drown down control which pulls in values from the list and sets the default value to the contact. But it can only store and compare one contact. How could I have it compare the current user against everyone in the list?

Thank you in ad开发者_JAVA技巧vance.

EDIT: Sorry I should've specified, this is a 2007 InfoPath form.


Ahh, yes, it's possible with this codeplex project: SPViewPermissionSetting

With this feature you can specify default and available views for a SharePoint group.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜