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

Bar Code Scanner for dropdown input value

I have a PowerApp with dropdown values from a SP List; I have several cards that have dropdown values based on the first dropdown value. I would like to set up a scan button for the main dropdown input value, but still have the other dropdowns work with the scanned text input value. I hope this makes sense. 

 

EvaAGarcia_0-1627308316278.png

Example: SAP Equipment # populates FAA & Pump Name and other fields from a SP List.

Would like to scan SAP Equipment # and still populate the other fields.

 

Thanks for the assistance.

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Community Champion
Community Champion

Hi @EvaAGarcia

 

The previous one was to display the scan button based on the dropdown value. In that case, "Critical" is the choice value.

 

Get Data based on Scanner Value

We have 2 options based on the scan value using the scanner.

 

1. Display individual data (Without form)

Set the onscan property of the scanner

 

Set(ScannedRecord, LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value)))

 

 

Set the label control to display FAA and pump Name

 

FAADataCard.text = ScannedRecord.FAAColumnName
PumpNameDataCard.text = ScannedRecord.PumpNameColumnName

 

For Dropdown, Set the Default property as

ScannedRecord.ChoiceColumnName.Value

 

 

 2. Display data on the form (Edit form)

Set Item property of Form as 

 

LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value))

 

 and Datasource as SPListname or any data source

 

View solution in original post

4 REPLIES 4
StalinPonnusamy
Community Champion
Community Champion

Hi @EvaAGarcia 

Change the visible property for the Camera and Barcode Scanner control. In this case, I have a combo box named "ComboBox1"

BarcodeScanner and Camera Visible property is

 

ComboBox1.Selected.Value="Critical"

 

 

In this example, both are visible when combo box value is "Critical"

StalinPonnusamy_0-1627315350310.png

 

We can set it DisplayMode as well.

 

"Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

 

StalinPonnusamy
Community Champion
Community Champion

Hi @EvaAGarcia 

 

Please let us know if anything needs on your post. We can help with this.

 

"Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful. "

I finally have time to work on this scan feature. I'm not quite following what you have instructed.

In your example is "Critical" your column name?

StalinPonnusamy
Community Champion
Community Champion

Hi @EvaAGarcia

 

The previous one was to display the scan button based on the dropdown value. In that case, "Critical" is the choice value.

 

Get Data based on Scanner Value

We have 2 options based on the scan value using the scanner.

 

1. Display individual data (Without form)

Set the onscan property of the scanner

 

Set(ScannedRecord, LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value)))

 

 

Set the label control to display FAA and pump Name

 

FAADataCard.text = ScannedRecord.FAAColumnName
PumpNameDataCard.text = ScannedRecord.PumpNameColumnName

 

For Dropdown, Set the Default property as

ScannedRecord.ChoiceColumnName.Value

 

 

 2. Display data on the form (Edit form)

Set Item property of Form as 

 

LookUp(DataSource,Barcode=Value(BarcodeScanner1.Value))

 

 and Datasource as SPListname or any data source

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,247)