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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / I want to navigate to ...
Power Apps
Answered

I want to navigate to a screen by using the Barcode Scanner

(0) ShareShare
ReportReport
Posted on by 12

Hello Community!

 

I am quite new to powerapps and still figuering out some stuff....

 

I want to use the barcodescanner to navigate to a screen that has the name of the scanned code.

Apparently this doesn't seem to work:

onScan: Navigate(BarcodeScanner1; ScreenTransition.None)

 

Anyone has a solution? 🙂


Best regards 

 

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Maciboi 

     

    Please try this

    Navigate(BarcodeScanner1.Value; ScreenTransition.None)
    
    OR
    
    Navigate(Text(BarcodeScanner1.Value); ScreenTransition.None)


    Thanks,
    Stalin - Learn To Illuminate

  • Maciboi Profile Picture
    12 on at

    Hi @StalinPonnusamy 

    thanks for the quick reply! 

    Unfortunatly for both ur suggestions I get follwing error:

    Maciboi_0-1644243565133.png

    English: "First Argument of Navigate should be a control element or a screen"

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Maciboi 

     

    Sorry. I misunderstood the needs. 

     

    Set the OnScan property to

    Set(ScannedValue; BarcodeScanner1.Value);;
    Navigate(ScreenName; ScreenTransition.None)

     

    I assume you are displaying the data on the form on the other screen. So set the item property to

    LookUp(ActualDataSource, ColumnName = ScannedValue)

    and Set the DataSource property of the form

    ActualDataSource


    Thanks,
    Stalin - Learn To Illuminate

     

  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Maciboi 

    I guess you want something like this. Use this on OnScan

     

    Switch(
     BarcodeScanner1.Value,
     "Screen1",
     Navigate(Screen1),
     "Screen2",
     Navigate(Screen2)
    )

     

     

    You can't pass Screen names dynamically - they have to hardcoded.

     

    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.

  • This_is_Asta Profile Picture
    4 on at

    ".value" this part is raising error , can you help me 

    Actual Im trying make an app where I have roll nums of all students as QR Codes .. if I  Scan it should open the details of the purticular student 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard