当复选框为true时,隐藏了整个行,包括PowerApps中的字段
I'm new in PowerApps and I'm trying to hide a row from a list when the checkbox is true and leave visible when false.
Any ideas? Thank you for your understanding.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以手动将属性添加到数据中,例如名为 hide 的布尔值。
这样,您就可以执行过滤器:
filter(< yourdata> hide<> true)
。要添加您的列:
clearCollect(newcol,addColumns(oldcol,hide hide',false)));
以下时,当您单击复选框时,它是 on Change evert conge Event均可更改 thisitem 的值使其从列表中消失。但是,数据仍然存在。它只是不会在桌子/画廊中显示。
You could add a property manually to your data, say a boolean named Hide.
This way, then you can perform a filter:
Filter(<yourdata>, Hide <> true)
.To add your column:
ClearCollect(NewCol,AddColumns(OldCol,"Hide",false));
This way, when you click on the checkbox, it's OnChange event could change ThisItem's value to make it disappear from the list. The data is still there, though. It just won't show it in the table/gallery anymore.
取决于您想对隐藏的值做什么。我假设导入时所有复选框值都是
true
。模拟数据:
尝试以下操作:
然后您可以拥有另一个画廊控制用户可以选择的画廊控制哪些要添加!
OnunSelect
property插图:
Depends on what you want to do with the hidden values. I'm assuming all checkbox values are
true
upon import.Mock data:
Try this:
OnUncheck
property of the Checkbox:Then you can have another Gallery control where the users can pick which ones to add back!
OnUnselect
propertyIllustration: