Hi All,
I have built the following hamburger menu. When I click on the respective option, the correct page opens, it should be like this. I have built it like this:
In the app it looks like this:
But now I want to say that when I click the last Option "Abmelden", the app should not redirect to a screen, but should close completely by itself.
How can I achieve that? Do you have any ideas?
Is there something like Exit App?
Thank you very much in advance!
Solved! Go to Solution.
I guess that the OnSelect formula of your gallery looks something like this:
Navigate(ThisItem.Screen)
You could maybe change that to the following:
If(ThisItem.Title = "Abmelden";
Exit();
Navigate(ThisItem.Screen)
)
Alternatively, you could navigate the user to an 'Exit Confirm' screen. That screen would contain a label 'Are you sure you want to exit?', and you could add an 'OK' button that calls Exit().
Hi @PowerSäm ,
You need the Exit Function
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @WarrenBelz and thank you for your quick reply.
But how can I do it in my specific case? Maby like this? (See pic below)
It seems that something is missing.
I thank you in advance for your help.
Actually looking at it again, you cannot in that structure - it is expecting a screen
I guess that the OnSelect formula of your gallery looks something like this:
Navigate(ThisItem.Screen)
You could maybe change that to the following:
If(ThisItem.Title = "Abmelden";
Exit();
Navigate(ThisItem.Screen)
)
Alternatively, you could navigate the user to an 'Exit Confirm' screen. That screen would contain a label 'Are you sure you want to exit?', and you could add an 'OK' button that calls Exit().
Thank you, for your replies, @WarrenBelz & @timl.
@timl, I did not put these options behind a gallery, but behind the app itself, in the OnStart function (see pic below).
So is it possible to put your IF statement somewhere there too? Or is that not possible?
Otherwise I will work with the suggested workaround, the 'Exit Confirm' screen.
Thank you in advance!
Hi @PowerSäm
I can't see any way of adding a call to Exit in your existing formula so if it's workable, I think the 'Exit Confirm' screen would be the easiest option here.
Thanks for your quick reply, @timl .
Ok, then I will use the second way to work around this issue.
Thank you so much!
Thanks for your quick reply, @timl .
Ok, then I will use the second way to work around this issue.
Thank you so much!
I had a similar scenario when I wanted to close the entire tab on click of a button from powerapp. I tried using Exit() formula but it only redirects you to the other screen instead of closing it.
You can develop a PCF component to meet that requirement.
Here's the link which can help you with the designing.
https://hameedhussaincom.wordpress.com/2021/02/25/create-a-new-pcf-button-control/
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
199 | |
100 | |
61 | |
59 | |
58 |
User | Count |
---|---|
254 | |
164 | |
91 | |
79 | |
70 |