cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stylead
Helper III
Helper III

ComboBox searching by Barcode Scanner

hello there, 

 

I have an inventory app and want to scan shelf location instead of finding the location in ComboBox ( choice column )

 

I used this code but it seems not working:

 

{Value: Coalesce(Parent.Default,ThisItem.Shelf)}

 

Screen Shot 2022-03-15 at 2.21.58 PM.png

 

when I scan it gives nothing.

 

Screen Shot 2022-03-15 at 2.22.14 PM.png

 

something is missing 😅

 

Screen Shot 2022-03-15 at 2.22.31 PM.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@Stylead ,

I tested the code here on a barcode scanner, a combo box and a choice field as below and received the results expected

WarrenBelz_0-1647347317316.png

What are you doing different?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @Stylead ,

I am assuming you are testing for something in the scanner

{
   Value: 
   Coalesce(
      ScannerName.Value,
      ThisItem.Shelf
   )
}

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Thanks for the fast response, kindly find the below code showing error.

 

Screen Shot 2022-03-15 at 3.16.48 PM.png

Hi @Stylead ,

Is Shelf a Choice field - if so

Coalesce(
   BarcodeScanner1_2.Value,
   ThisItem.Shelf.Value
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

Yes, the shelf is a Choice field.

 

below is my issue I used your code still showing error:

 

 https://im4.ezgif.com/tmp/ezgif-4-2996fac550.gif 

 

@Stylead ,

I tested the code here on a barcode scanner, a combo box and a choice field as below and received the results expected

WarrenBelz_0-1647347317316.png

What are you doing different?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Thanks a lot, my bad I used your code like this :

Coalesce(
   BarcodeScanner1_2.Value,
   ThisItem.Shelf.Value
)

 

the right one was like the photo you sent:

{
   Value: 
Coalesce(
   BarcodeScanner1_2.Value,
   ThisItem.Shelf.Value
)
}

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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