web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Open DetailScreen of I...
Power Apps
Answered

Open DetailScreen of Item from QR Code

(0) ShareShare
ReportReport
Posted on by

Hello,

 

im tinkering with the barcode scanner module at the moment. My current implementation is a QR code which contains the name of an item like "5m Cable". 

The OnScan looks like this: Set(_Scan; BarcodeScanner1.Value)

The Default of my TextSearchBox is _Scan so that i am searching for the name in the QR Code.

 

Is there a way to directly open the DetailScreen / DetailForm for this item?

 

All my ideas end at the Item tab of the DetailForm and how do i set the BrowseGallery1.Selected to my Item via QR Code or how can i access an item directly without going through the BrowseGallery1 

Categories:
I have the same question (0)
  • Verified answer
    MichelK Profile Picture
    120 on at

    Hello @Anonymous,

     

    There is an OnScan property on the barcode scanner. You could add this code on it :

    Set( _Scan, Self.Value );

    Set( gblRecord, LookUp( DataSource, name = _Scan ) );

    If( !IsBlank(gblRecord), Navigate( DetailScreen), Notify( "No record matching the Scanned name was found" ));

     

    And on the Item property of the form, you place gblRecord

     

    Let me know if this helps!

  • Verified answer
    WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at

    Hi @Anonymous ,

    Assuming '5m Cable' is a unique value - OnScan

    With(
     {
     wScan:
     LookUp(
     YourSPList,
     YourItemField = BarcodeScanner1.Value
     ).ID
     },
     If(
     !IsBlank(wScan),
     Set(
     gblID,
     wScan
     );
     Navigate(YourFormScreen),
     Navigate(YourGalleryScreen)
     )
    )
    
    

    OnSelect of your BrowseGallery

    Set(
     gblID,
     ThisItem.ID
    )

    Item of your Form

    LookUp(
     YourSPList,
     ID = gblID
    )

     

    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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard