문제

May I know if it is possible to set a constraint where certain group of users can see certain page view of a web-based InfoPath 2007 form?

Scenario:
I have 3 group of users - Group A, Group B and Group C
In my InfoPath form, I have 3 views - View All (which only Group A can view), Issue Loan (which only Group B can view) and Repair (which only Group C can view).
I do not wish to create 3 different form and hope to utilize the page view for InfoPath form in my scenario.

도움이 되었습니까?

해결책

You can but it is not simple. I will provide some info to get you started.

Basically you need to find current user groups and then build view conditions according to your needs. This can be done by some coding or by using SharePoint webservices. There is one nice web service called Users and Groups Web Service with method called UserGroup.GetGroupCollectionFromUser Method. If you provide user login name to it (eg. by using userName() function in InfoPath) it will return all users groups.

However there is slight problem and InfoPath doesn't handle web service results as expected. This can be fixed by following steps in this article:

InfoPath: Displaying SharePoint Group List Using “GetGroupCollectionFromUser” method

And here you have one great tutorial that almost cover your requirement:

InfoPath – User Roles in Browser-Enabled Forms Using AD Groups

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top