cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CPalaloga
Frequent Visitor

Fob reader to PowerApps

I am working on an App that is common between users, but users can register what they work on by only using their fob.

If the field is a input field, users can scan the fob and it does the job.

The issue is that users will have the possibility to write the code by hand and use the code of a colleague.

 

I tried to use a input field with a timer, but doesn't work if the code is copied and pasted in the interval of the timer.

 

I can't find a method where the user clicks a button, the App waits an input from the USB, when fob is read, code is added (through a variable on the text field of the button).

 

Any ideas?

1 REPLY 1
CPalaloga
Frequent Visitor

I tried a different method using input value (InV) and a mask(Ma):

  • InV.OnSelect = UpdateContext({PendingFob:true});
    UpdateContext({FobCode:""})
  • InV.OnChange = UpdateContext({FobCode:Self.Text});
    UpdateContext({FobFieldReset:true});
    UpdateContext({FobFieldReset:false});
    UpdateContext({PendingFob:false})
  • Ma.Visible = PendingFob

Summary: once InV is selected, Ma will cover the content and the previous code will be erased. When the fob is scanned, InV will store the value and execute the OnChange. The value will be stored for future use, the content of InV is resetted and the Ma is invisible again.

 

Is a little messy, but does somebody has any other suggestion?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,874)