cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wieland
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
WarrenBelz
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
WarrenBelz
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (18,495)