想通过infopath获取当前登录人信息,如果直接将文本框赋值选择函数username()取出来的值是 i:0#.w|当前域\用户名(不知道是firstname还是lastname,反正不是全称)这样的一个值,我需要的是displayname
所以infopath调webservie里面的GetUserProfileyName,打开表单时报错如下
在网上查了很多资料,获取登录人的办法就是调自带的webservice,可是很多人出现5566这个错误,基本没有解决办法,求高手。。。
------解决方案--------------------
参考这里,有你遇到的问题和解决办法:
http://spvee.wordpress.com/2013/04/10/auto-populate-user-information-in-infopath-with-claims-based-authentication-part-1-of-3/
http://spvee.wordpress.com/2013/04/10/auto-populate-user-information-in-infopath-with-claims-based-authentication-part-2-of-3/
http://spvee.wordpress.com/2013/04/10/auto-populate-user-information-in-infopath-with-claims-based-authentication-part-3-of-3/