首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

Infopath中获取用户的组织

2013-02-24 
Infopath中获取用户的部门我在INFOPATH使用 userprofilebyname来获取用户的资料, 如 FirstName, Manager,

Infopath中获取用户的部门
我在INFOPATH使用 userprofilebyname来获取用户的资料, 如 FirstName, Manager, 都可以正常得到准确的值,但是我一直未能得到 department的值;不知道哪里有误

Value[Name = "Department"] userprofilebyname
[解决办法]
看log里面是不是有这个异常(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS里面最新的一个文件):
System.MissingMethodException: Method not found: 'System.String Microsoft.Office.Server.UserProfiles.SynchronizationRunStatus.get_ConnectionName()'. 

如果有那么你就是安装的SharePoint 2010 with sp1。这个是sp1的一个bug。更新你的SharePoint吧:
http://technet.microsoft.com/en-us/sharepoint/ff800847.aspx
这里有最新的SharePoint2010更新包。2012.12月份的。

热点排行