如何使用 PowerApps 中的输入字段和下拉菜单过滤项目?
How to filter items using an input field and a dropdown in PowerApps?
我已将 Excel table 连接到 PowerApps 中的库控件。我有一个用于 'Manager' 列的 select 值的下拉框和一个输入员工姓名的输入字段。我试过-
Filter(Table1,StartsWith(Name,empSearchbox.Text) && (Manager = dropdownManager.Selected.Value ||dropdownManager.Selected.Value=Blank()))
这给我错误-
Issue
Incompatible types for comparison. These types can't be compared: Text, Error.
We can't evaluate your formula because the values being compared in the formula aren't the same type.
第二个错误:
Name isn't valid. This identifier isn't recognized.
This error appears most commonly when a formula refers to something that no longer exists (for example, a control that you've deleted).
Location No
过滤器功能的第一部分单独工作。
编辑:= 和 .Value 带有红色下划线。
假设您的 dropdownManager 字段有一个空白值作为 initial/unselected 值,尝试:
Filter(
Table1,
StartsWith(
Name,
empSearchbox.Text
) && ( Manager = dropdownManager.Selected.Result || isBlank( dropdownManager.Selected.Result)
)
)
这将帮助您入门 ;-)
我已将 Excel table 连接到 PowerApps 中的库控件。我有一个用于 'Manager' 列的 select 值的下拉框和一个输入员工姓名的输入字段。我试过-
Filter(Table1,StartsWith(Name,empSearchbox.Text) && (Manager = dropdownManager.Selected.Value ||dropdownManager.Selected.Value=Blank()))
这给我错误-
Issue
Incompatible types for comparison. These types can't be compared: Text, Error.
We can't evaluate your formula because the values being compared in the formula aren't the same type.
第二个错误:
Name isn't valid. This identifier isn't recognized.
This error appears most commonly when a formula refers to something that no longer exists (for example, a control that you've deleted).
Location No
过滤器功能的第一部分单独工作。 编辑:= 和 .Value 带有红色下划线。
假设您的 dropdownManager 字段有一个空白值作为 initial/unselected 值,尝试:
Filter(
Table1,
StartsWith(
Name,
empSearchbox.Text
) && ( Manager = dropdownManager.Selected.Result || isBlank( dropdownManager.Selected.Result)
)
)
这将帮助您入门 ;-)