cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Patch function not working the way it is suppose to

I am trying to make an attendance application using barcode scanner to get attendance. I am using Patch with Default function on text input but it does not save my result in the Excel sheet on OneDrive. I do not want to use a button. I only want the result to be saved just when the code is scanned.

But it does not work. No error or exception. 

Any guidance would be helpful.

 

Regards

Naqash

5 REPLIES 5
BitLord69 Power Participant
Power Participant

Re: Patch function not working the way it is suppose to

Can youi please attach a screen dump and your exact fomula you're using? Without those it's impossible to guess what's going on, or more to the point, what's not going on.

JennieTodd
New Member

Re: Patch function not working the way it is suppose to

I am having the same problem

animeyt | kissanime
 

Anonymous
Not applicable

Re: Patch function not working the way it is suppose to

powerapp2.png

 

 

BitLord69 Power Participant
Power Participant

Re: Patch function not working the way it is suppose to

Where's the Patch -code, and where do you call it? Provide as much as information as you can, it makes it so much easier to write a good and helpful reply, no I still need to guess a lot.

 

You have an EditForm. Why not use the built in functions for saving data?

 

Do you not want the users to acknowledge that the label is scanned properly by pressing a button? 

Anonymous
Not applicable

Re: Patch function not working the way it is suppose to

This is the Patch code i am writing in the OnSelect event of text input

Patch(Table1, Defaults(Table1), {Code: Barcode1.Text, Name: User().FullName})

I want the user to just scan tha barcode and the result saves automatically in my Excel sheet in OneDrive. Because Patch function is used when we do not want any user interaction (e.g. button tap).

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (7,869)