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 / Launch edit screen aft...
Power Apps
Unanswered

Launch edit screen after scanning barcode

(0) ShareShare
ReportReport
Posted on by 27

Hi Amazing folks!

 

I have a canvas app that stores information on a SharePoint list. (that works)

I have a scan button that patches barcodes to the serial column on that SharePoint list. (that works)

problem is, after scanning the barcode, it goes directly to the list not allowing me to first edit (put in other fields) with the following code:

Patch('inventory SP TEST', {Serial: BarcodeScanner1.Value, 'Who Scanned': User().FullName, 'When Scanned': Now()})

Koketso1_0-1627450769392.png

 How do I get the edit screen to launch after scanning a barcode, so that the app launches the edit screen for me to input other fields before storing in SharePoint? 

Categories:
I have the same question (0)
  • KvB1 Profile Picture
    1,596 on at

    Scan is just a button, instead of telling the OnSelect to patch you can use it to navigate instead, and put the patching formula on a button in the edit screen. The BardcodeScanner1.Value will still be stored in the scanner control if you switch screen.

     

    If you want to patch your list with the scan time rather than the time when its patched, you should create a variable on the OnSelect of the scan button to use for 'When Scanned' on the patch function.

  • eka24 Profile Picture
    20,923 on at

    I suggest you insert Textbox on your screen, then in the Default property:

    Textbox1: BarcodeScanner1.Value

     

    Thant gives you an opportunity to edit.

     

    After edit:

    Insert a Button with OnSelect property:

    Patch('inventory SP TEST', {Serial: Value(Textbox1.Text), 'Who Scanned': User().FullName, 'When Scanned': Now()})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Koketso1 Profile Picture
    27 on at

    @eka24 

    great suggestion, but id like it to launch the edit screen so I can modify all the other information as shown on the screen below :

    Eg, I just scanned the barcode 8QGLQ13.

    I want to be able to then modify the other fields as below image then save it

    Koketso1_0-1627454449194.png

     

  • eka24 Profile Picture
    20,923 on at

    Can you explain further, are you not able to edit the image you have shown?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Koketso1 Profile Picture
    27 on at

    Hi Eka, Sure.

     

    1 - I have a canvas app that stores information onto a sharepoint list.

    2- I have a scan button that launches the camera to scan barcode/qr code and writes it to the list on the serial column OnScan -  Patch('inventory SP TEST', {Serial: BarcodeScanner1.Value, 'Who Scanned': User().FullName, 'When Scanned': Now()})

    3- when running the app on my mobile, the scan button opens the camera,  scans the barcode/qr code and then it CLOSES.. then I have to LOOK for the scanned entry on the app, click on it and then edit..  

    4-  what I want is : when I click on the scan button, it should scan the barcode and then open the edit screen where the serial will already be populated so that I put in the other details of the user such as Title, form factor , comments 

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    Am not sure of your scan formula but try On the scan button:

     Set(varScanNo, BarcodeScanner1.Value);Navigate(EditScreen); EditForm(YourFormName)

     

    Then in the Default of the Textbox which receives the scan: varScanNo

     

    Then you can edit and use either Patch or SubmitForm(YourFormName)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Koketso1 Profile Picture
    27 on at

    Hi @eka24 , 

     

    Thanks!, I  still used the patch, and added the Navigate function.

     

    Patch('inventory SP TEST',Navigate(EditScreen1);{Serial: BarcodeScanner1.Value, 'Who Scanned': User().FullName, 'When Scanned': Now()})

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard