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

Select object in multiple parameters 'Onscan' barcodescanner not giving reaction on object

Good afternoon,

 

I'm trying to make a reactive barcodescanner where the scanned value is used to sort through a list and the sorted item should then be selected and automatically, the DetailSceen should be openend. I've configured the Scanner as follows:

 

Set(scanValue;BarcodeScanner1.Value);;Reset(TextSearchBox1);;Select(Body1)

 

This gives the required sorting, but the Select(Body1) doesn't give any reaction. As the Body1 is configured to  'Select(Parent)', I would expect that on selection, the parent would automaticaly open. So that Onscan the right parent would be opened.

 

Can someone point me in the right direction?

 

Cheers,

Wieland

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Hi @Wieland ,

So you are setting a Variable to the scan value and I assume you want to go to an Edit of View form on another screen and display the item? The Select() function will certainly run code on a button or Icon, but I am not sure it will work in a gallery.

So 

Set(
   scanValue;
   BarcodeScanner1.Value
);;
Reset(TextSearchBox1);;
Navigate(YourScreenName)

If you want the value of the Scan to match the displayed record, you could have the Form Item

If(
   !IsBlank(vScanVaue),
   Lookup(
      YourListName,
      YourMatchingField=vScanValue,
   ),
   YourGalleryName.Selected
)

 

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.

View solution in original post

2 REPLIES 2
Super User III
Super User III

Hi @Wieland ,

So you are setting a Variable to the scan value and I assume you want to go to an Edit of View form on another screen and display the item? The Select() function will certainly run code on a button or Icon, but I am not sure it will work in a gallery.

So 

Set(
   scanValue;
   BarcodeScanner1.Value
);;
Reset(TextSearchBox1);;
Navigate(YourScreenName)

If you want the value of the Scan to match the displayed record, you could have the Form Item

If(
   !IsBlank(vScanVaue),
   Lookup(
      YourListName,
      YourMatchingField=vScanValue,
   ),
   YourGalleryName.Selected
)

 

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.

View solution in original post

Thank you @WarrenBelz  this worked like a charm

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (12,177)