Hello,
First of, sorry I really don't know anything about PowerApp so please be comprehensive...
I'd like to create a simple app which can be used to count people in a building.
I need that several people can use it simultaneously:
- You enter a number (let's say you type 50 (=people already in the building before counting starts))
- The person at the front door can Add 1 by pressing a button for every person who enters
- On the other side of the building another person can Substract 1 by pressing another button
That way I can have the real number of people in real time.
Can someone explain how to do that, please? What functions to type? And so on...
The best would be that the counting evolution would be saved somewhere (like a reporting) but I don't know how to do it...
It might look like this:
See? Nothing fancy really...
Thank you in advance!!
Solved! Go to Solution.
Yes, use the variable peopleCount in the Default property of the Text Input or the Text property of a label.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@paulb4
Put this code in the OnChange property of the Text Input
Set(peopleCount, Value(TextInput1.Text))
Make sure to set the Format property of the Text Input to this code
Number
Use this code in the OnSelect property of the +1 button
Set(peopleCount, peopleCount + 1)
Next, this code goes in the OnSelect property of the -1 button
Set(peopleCount, If(peopleCount > 0, peopleCount - 1))
To display the current number of people in the building put this code in the Text property of your label or text input.
peopleCount
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hello @mdevaney
Sorry I don't know what you mean by the last step:
To display the current number of people in the building put this code in the Text property of your label or text input.
peopleCount
I don't understand where I am supposed to type "peopleCount"... Can you be more specific, please? Where is the Text property field?
Thank you!
Yes, use the variable peopleCount in the Default property of the Text Input or the Text property of a label.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
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 |
---|---|
170 | |
94 | |
64 | |
63 | |
60 |
User | Count |
---|---|
243 | |
163 | |
94 | |
84 | |
82 |