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
Super User
Super User

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
Super User
Super User

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
Super User
Super User

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
Super User
Super User

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

 

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,683)