在我在PowerApps中排序之后,如何将画廊重置为默认值?
排序按钮(ONSELECT):
UpdateContext({sortGrade: !sortGrade})
图库中的项目:
SortByColumns(Filter(
Search(
Table1,
TextInputSearch_3.Text,
"Name2"
), "Cumulative Grade Point Average (CGPA)/Grade", If(sortGrade, Descending, Ascending))
当排序级为false时,我希望画廊回到默认布置时,而不是排序升级,这是可能的吗?
Sort button (OnSelect):
UpdateContext({sortGrade: !sortGrade})
Items in Gallery:
SortByColumns(Filter(
Search(
Table1,
TextInputSearch_3.Text,
"Name2"
), "Cumulative Grade Point Average (CGPA)/Grade", If(sortGrade, Descending, Ascending))
Instead of it sort to ascending when the sortGrade is false, I want the gallery back to default arrangement, is it possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
幸运的是,我找到了我自己问题的答案,因此,对于任何可能会在PowerApps中遇到相同问题的人:
因此,当
sortgrade
是是
false
时,画廊将在默认安排中(通过name2
)。Luckily, I found an answer for my own question, so here it is for anyone that may encounters the same problem in PowerApps:
So when the
sortGrade
isfalse
, the Gallery will be in the default arrangement (byName2
).