根据用户名将 SharePoint 数据筛选到 InfoPath
基本上我有一个 InfoPath 表单,它从 SharePoint 列表接收一些数据,问题是我想根据当前用户的用户名过滤这些数据。
因此,我在 SharePoint 中有一个“作者”字段,它是“个人/组”字段。
因此,当我在 InfoPath 中过滤数据时说
where Author is equal to UserName()
我也尝试过 contains
但它仍然不起作用,有人对解决方案有任何想法吗?
请注意,在这种情况下,使用代码不是一个选项!
Basically I have an InfoPath form which recieves some data from a SharePoint list, the problem is I would like to filter this data based on the username of the current user.
So I have an Author field in SharePoint which is a 'Person/Group' field.
So when I filter the data in InfoPath by saying
where Author is equal to UserName()
I also tried contains
But it still doesnt work, does anyone have any ideas on a solution?
Note that using code is not an option in this case!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过仅使用 SharePoint 列中的用户名而不是完整的个人/组结构来排序此问题,这样我可以匹配 InfoPath 中的两个用户名。
Sorted this issue by using just the username in the SharePoint column as opposed to the full person/group structure, this way I can match the two username in InfoPath.