cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
arthurvf
New Member

add + and - buttons

Hi everybody. 

I'm new in this world of powerapps.

 

So i would like some help about this idea. I attached a photo to be used as an example.
I have empty list in sharepoint that should record data in 4 columms. Date, Name, # NFC, # BT.

 

The main idea is to use the + or - button to count a number of events and in the end of the day, we can just push the save button and this datas will be recorded.

 

Thanks in advance

3 REPLIES 3
RezaDorrani
Dual Super User
Dual Super User

Hi @arthurvf 

 

Numeric up down control (check its code and implement the same in your App) 

https://powerapps.microsoft.com/en-us/blog/powerapps-ten-reusable-components/

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-yutliu-msft
Community Support
Community Support

Hi @arthurvf ,

Do you want to change value in textinput by clicking buttons?

 

I've made a similar test for your reference:

1)insert a textinput and two buttons

2)Set the textinput format: Number

                              Default: var

                              OnChange: Set(var,Value(TextInput5.Text))

3)Set the Up button's OnSelect: Set(var,var+1)

                Down button's OnSelect: Set(var,var-1)

 

Then, you could change the textinput value by clicking the two buttons.8276.PNG

 

 

What's more, using component like @RezaDorrani listed is ok too.

The way is very similar, just see the three controls as one component.

You could refer this bog:

https://powerapps.microsoft.com/en-us/blog/components-start-your-journey-with-reusable-controls/

The first video is talking about how to customize NumericUpDown Control.8277.PNG

 

Using component is quite amazing, you could customize its property. I think this is a way to customize control.

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thankyou @RezaDorrani and @v-yutliu-msft 

 

My problem, now, is to connect this component to my existent app. 

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,519)