【问题标题】:Searching a Sharepoint list from a Powerapp is working for one column but not another从 Powerapp 搜索 Sharepoint 列表适用于一列,但不适用于另一列
【发布时间】:2019-09-04 18:36:26
【问题描述】:

我有一个 Sharepoint 列表“设备日志 3”,其中包含以下字段:

  • 项目(从默认的“标题”字段重命名)
  • 名字
  • 姓氏
  • 开始日期
  • 结束日期

我将此列表绑定到画布应用屏幕中的图库。我有一个 TextSearch 文本框,用作搜索功能的输入。 当我将 Gallery-> Items 设置为

Search('Equipment Log 3', TextSearch.Text, "Title")

一切正常。见下图

[按文本搜索 - 空白值][1] [1]:https://i.stack.imgur.com/Yec7U.png

[按文本搜索-值][1] [1]:https://i.stack.imgur.com/t84Tl.png

但是当我把它设置为

Search('Equipment Log 3', TextSearch.Text, "First Name")

Search('Equipment Log 3', TextSearch.Text, "First_x0020_Name") 

(如https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup推荐的)

它给出了一个错误说明

"The specified column First Name does not exist"

[错误名字][1][1]:https://i.stack.imgur.com/z2uA9.png

但该列存在,因为画廊的字幕标签设置为显示拳名和姓氏。

[全名][1][1]:https://i.stack.imgur.com/Tkf6Z.png

为什么搜索对一列有效,而对另一列无效?

另外,当我搜索从“标题”重命名的“项目”时,它不起作用,但它适用于“标题”,这是我在创建列表时由 Sharepoint 提供的默认字段名称。为什么会这样?

【问题讨论】:

    标签: sharepoint-online powerapps powerapps-canvas


    【解决方案1】:

    sharepoint 中带有空格的字段名称应删除空格,因此“FirstName”对您有用。那篇文档已经过时了,我正在更新它。

    【讨论】:

    • 按“名字”搜索有效。感谢您的回复并更新了文档。
    猜你喜欢
    • 1970-01-01
    • 2020-08-07
    • 2020-10-21
    • 1970-01-01
    • 1970-01-01
    • 2022-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多