用Combobox和文本的过滤PowerApp Browsegallery
我有以下格式中的资产列表:
Site, IP Address, HostName, ...
列“站点”是一个组合。
我正在尝试构建一个允许用户逐场过滤的应用程序,并且仍然能够通过主机名或IP发短信搜索资产,
但我
SortByColumns(
If(CountRows(ComboBox1.SelectedItems)=0||IsBlank(ComboBox1.SelectedItems),Filter(
[@'AssetList'],
(StartsWith('IP Address', TextSearchBox1.Text) || StartsWith(Hostname, TextSearchBox1.Text))
), Filter([@'AssetList'], Site in ComboBox1.SelectedItems.Value))
, "IP_x0020_Address", If(SortDescending1, Descending, Ascending))
只有在ComboBox中没有过滤时,它才能起作用。我如何实现过滤器和组合
I have a list of assets in the format as below:
Site, IP Address, HostName, ...
Column "site" is a ComboBox.
I am trying to build an app that allows users to filter by site, and still be able to text search asset by Hostname or IP
So far I have
SortByColumns(
If(CountRows(ComboBox1.SelectedItems)=0||IsBlank(ComboBox1.SelectedItems),Filter(
[@'AssetList'],
(StartsWith('IP Address', TextSearchBox1.Text) || StartsWith(Hostname, TextSearchBox1.Text))
), Filter([@'AssetList'], Site in ComboBox1.SelectedItems.Value))
, "IP_x0020_Address", If(SortDescending1, Descending, Ascending))
But it only works if nothing is filtered in comboBox. How do I achieve both filter AND combobox
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需要将搜索框添加到'combobox.selected项目= false'filter语句中
You just needed to add your search box StartsWith functions to your 'ComboBox.Selected items = false' filter statement