Powerapps 通过 TextInput 和/或 TextInput 和组合框筛选图库

问题描述 投票:0回答:1

我正在尝试通过 TextInput 和/或 TextInput & ComboBox 过滤 powerapps 库,下面的代码仅通过 textinput 过滤任何人都可以帮忙吗?

Filter(
   WD_Stock_Items_SP_List,
    TextInput1.Text in Item_Description || TextInput1.Text in Item_Description && 
    ComboBox1.Selected.Value)

combobox gallery powerapps textinput powerapps-formula
1个回答
0
投票

尝试类似:

With( { f1: Filter(WD_Stock_Items_SP_List, TextInput1.Text in Item_Description ) },
  If(
    CountRows(ComboBox1.SelectedItems) > 0,
    Filter(f1, yourColumnName.Value = First(ComboBox1.SelectedItems).Value),
    f1
  )
)
© www.soinside.com 2019 - 2024. All rights reserved.