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)}
when I scan it gives nothing.
something is missing 😅
Solved! Go to Solution.
@Stylead ,
I tested the code here on a barcode scanner, a combo box and a choice field as below and received the results expected
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
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.
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
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
)
}
User | Count |
---|---|
257 | |
110 | |
97 | |
52 | |
39 |