在表单中获取当前用户,可采用this.Application.User.UserName
1
2 |
XPathNavigator navigatior = MainDataSource.CreateNavigator().SelectSingleNode( "/my:myFields/my:userName" , this .NamespaceManager); navigatior.SetValue( this .Application.User.UserName); |
UserName,无域名
LoginName, 有域名
InforPath获取当前用户,布布扣,bubuko.com
原文:http://www.cnblogs.com/huangll/p/3719279.html