简体   繁体   English

SharePoint 2010和InfoPath中的GetGroupCollectionFromUser操作

[英]SharePoint 2010 and the GetGroupCollectionFromUser operation in InfoPath

I am working on an InfoPath 2010 form which will be submitted to a SP2010 instance and filled out via a web browser. 我正在处理InfoPath 2010表单,该表单将提交给SP2010实例并通过Web浏览器填写。 I am trying to present different views of the form based on the SP User group that the current user belongs to. 我试图基于当前用户所属的SP用户组来呈现表单的不同视图。

On form load I want to check a form status field and check to see if the current user belongs to an approval group. 在表单加载时,我想检查表单状态字段并检查当前用户是否属于批准组。 This group is a SP usergroup and from what I can tell the UserGroup.asmx webservice and the GetGroupCollectionFromUser operation is the one I want. 这个组是一个SP用户组,从我可以告诉UserGroup.asmx webservice和GetGroupCollectionFromUser操作是我想要的。 However, within InfoPath 2010 after I add the data connection the only result field seems to be userLoginName. 但是,在我添加数据连接后的InfoPath 2010中,唯一的结果字段似乎是userLoginName。 This does not seem to be what I want, or if it is, I don't know how to get at the group list contained in that value. 这似乎不是我想要的,或者如果是,我不知道如何获得该值中包含的组列表。

How can I get at the list of SharePoint groups returned? 如何获取返回的SharePoint组列表?

You need modify the xml schema of the web services: 您需要修改Web服务的xml模式:

This post shows how to do it: 这篇文章展示了如何做到这一点:

http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/ http://blog.symprogress.com/2011/05/infopath-list-form-hidedisable-fields-based-on-sharepoint-group-membership/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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