根据电源应用程序的复选框值在屏幕之间导航

发布于 2025-02-09 17:28:50 字数 389 浏览 2 评论 0原文

我想在我的应用程序电源应用中的屏幕之间导航,第一个屏幕是: 在此处 Enter Image Description

并基于选择的复选框,我想导航到它。并且,如果超过复选框,则在for屏幕之间导航。 例如,如果我检查第一个和最后一个,我想转到第一个屏幕,然后是最后一个屏幕。 我想做所有的可能性,我尝试了此代码,但它不起作用 在此处输入图像描述

请有人帮助您,谢谢您!

I want to navigate between screen in my application power app, the first screen is this :
enter image description here

And based on the checkbox selected, i want to navigate to it. And also navigate between the for screens if more than checkbox is selcted.
For example, if i check the first and the last one, i want to go to the screen of the first one, then the screen of the last one.
I want to do all the possibility, i tried this code but it's not working
enter image description here

Can someone help with this please, thank you in advance !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

死开点丶别碍眼 2025-02-16 17:28:50

这是可行的。在“下一个”按钮上,创建一个集合存储已检查的屏幕。接下来,您可以编写一个IF条件阅读当前屏幕并将其与集合进行比较,以了解要导航到当前版本之后的屏幕。

It's doable. On the "next" button, create a collection storing the screens that are checked. Next, you can write an if condition reading the current screen and comparing it with the collection to know which screen to navigate to after the current one.

家住魔仙堡 2025-02-16 17:28:50

那是可行的。但是这样写的方式将是劳动密集的。最好使用画廊和集合进行导航。但是我不知道您的应用程序或您将如何使用它。因此,这是您可以做自己想要的方法的一种方式。

不要使用多个if语句检查复选框的值。这样做会让您稍后遇到麻烦。因为PowerApps倾向于停止在屏幕上识别事物的趋势。而是使用全局的变量(一直在任何时候都可以看到)。

看来您只能进入几个屏幕,所以不应该太难了。

创建一个“导航”按钮,该按钮根据变量更改其“选择”属性。

寻求帮助的提示。始终以文本格式共享您的代码,以便人们可以轻松地复制您的问题。图片有帮助,但没有人想输入所有这些内容。

您可以将按钮的导航函数设置为导航(if(if(Reservoircheckbox),'Reservoir垂直HCl1',postechargcheckbox,poste de Chargement 2 ',pompcheckbox,'pomperie 3'))

这将使您能够根据选定的复选框导航(请注意,只需引用一个值为true/false的对象的名称与写入“ reservoircheckbox.value”的名称。 = true”)

That is doable. But it would be labor intensive to write it this way. It would be better to use a gallery and a collection to do navigation. But I don't know your app or how you will use it. So here is a way you can do what you want how you would like it.

Don't use multiple if statements which check the values of checkboxes. Doing that will get you in trouble later on. Because powerapps has a tendency to stop recognizing things on screens which are not visible. Instead use variables, which are global (seen everywhere all the time).

It looks like you're only going to a few screens so it shouldn't be too hard.

Create a "Navigate" button which changes its "on select" property based on the variables.

a tip for asking for help. Always share your code in text format so people can easily reproduce your problem. Pictures help, but no one wants to type all this stuff.

You can set the navigate function of your button to be Navigate(If(ReservoirCheckbox,'Reservoir Vertical HCL1',PostechargCheckbox,"Poste de chargement 2',PompCheckbox,'Pomperie 3'))

This will enable you to navigate based on the selected checkbox (note that just referencing the name of an object whose value is true/false is the same as writting "ReservoirCheckbox.Value = true")

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文