根据用户名将 SharePoint 数据筛选到 InfoPath

发布于 2024-10-02 14:02:06 字数 313 浏览 0 评论 0原文

基本上我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢你一世 2024-10-09 14:02:06

通过仅使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文