在这里我正在研究 PowerApps 我有 2 个 SharePoint 列表,一个是 challan 列表,一个是 challan 详细信息,我使用查找功能将两者结合在一个库中 例如:
LookUp('Challan List',ID=ThisItem.CListID,Title)
因此,我使用多重过滤功能,它与组合框完美搭配待处理的 challan 和产品名称,但现在我想按 challan 列表搜索,我可以按标题和客户名称搜索记录我的画廊项目看起来像这样进行过滤。
例如:
If(
//this is for all and all
ComboBox2.Selected.Result = "All" And DisplayDD.Selected.Value = "All",
'Challan Details',
//this is for all product and selected challan status
ComboBox2.Selected.Result = "All" And DisplayDD.Selected.Value <> "All",
Filter(
'Challan Details',
DisplayDD.SelectedText.Value = "Pending" in Text(IsBlank(Remarks))
),
//this is for selected product and all challan status
ComboBox2.Selected.Result <> "All" And DisplayDD.Selected.Value = "All",
Filter(
'Challan Details',
Title = ComboBox2.Selected.Result
),
//this is for selected product and selected challan status
ComboBox2.Selected.Result <> "All" And DisplayDD.Selected.Value <> "All",
Filter(
'Challan Details',
Title = ComboBox2.Selected.Result & DisplayDD.SelectedText.Value = "Pending" in Text(IsBlank(Remarks))
//this for searchbox
)),
"Created",
Descending
)