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 / BarcodeReader no patch...
Power Apps
Unanswered

BarcodeReader no patch after scan

(0) ShareShare
ReportReport
Posted on by

Hi everyone , i got the problem that my BarcodeReader dont patch my items.

 

i create a qr code for the this.

In the QR-Code is a text with an option from the optionset.

In the QR-Reader i use the code to Patch the database.

Here is the code:

Patch(Arbeitszeit;Defaults(Arbeitszeit);{Name:User().FullName};{Zeiten:Now()};{ArtDerArbeitsZeit:BarcodeReader1})

 

The row ArtDerArbeitsZeit is a row with an optionset.

In the QR-Code there is the Text [@Arbeitsmodel].'Pause start' this is one option from the optionset.

But after scan the Row be empty

Categories:
I have the same question (0)
  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    To troubleshoot the issue with the BarcodeReader not patching the items correctly, you can try the following steps:

    1. Make sure the BarcodeReader control is properly configured to read the QR code. Check that the control's properties, such as Camera, DelayBetweenDecodingAttempts, and Active, are set correctly.

    2. Confirm that the BarcodeReader is successfully scanning the QR code and capturing the text value. You can test this by adding a temporary label on the screen and binding its Text property to the BarcodeReader.Value. This will display the scanned value in real-time for debugging purposes. If the label shows the correct scanned value, it means the BarcodeReader is working as expected.

    3. Check the structure and properties of the Arbeitszeit SharePoint list or data source. Verify that the "ArtDerArbeitsZeit" column is of the correct type to store the selected option from the option set. It should be a column with the option set data type or a compatible data type.

    4. Ensure that the text value extracted from the QR code matches the option set's text value exactly. Double-check for any leading or trailing spaces, special characters, or case sensitivity. You can use the Trim() function to remove any leading or trailing spaces in the scanned value.

    Patch(
     Arbeitszeit,
     Defaults(Arbeitszeit),
     {
     Name: User().FullName,
     Zeiten: Now(),
     ArtDerArbeitsZeit: Trim(BarcodeReader1.Value)
     }
    )

    If the above steps do not resolve the issue, you can add additional debugging elements to your app. For example, you can add labels to display the values of each parameter in the Patch function to check if they contain the expected values. This will help identify any potential issues with the data being passed to the Patch function.

    Patch(
     Arbeitszeit,
     Defaults(Arbeitszeit),
     {
     Name: User().FullName,
     Zeiten: Now(),
     ArtDerArbeitsZeit: Trim(BarcodeReader1.Value)
     }
    );
    UpdateLabel1.Text = User().FullName;
    UpdateLabel2.Text = Text(Now());
    UpdateLabel3.Text = Trim(BarcodeReader1.Value);

    By following these steps and adding additional debugging elements, you can identify any potential issues with the BarcodeReader control or the Patch function, and troubleshoot why the ArtDerArbeitsZeit field is not being updated correctly in the Arbeitszeit data source.

  • Community Power Platform Member Profile Picture
    on at

    The scaner scan the right thing. I have the problem the barcodereader1.value is not define and the type from ArtDerArbeitsZeit:BarcodeReader1.Value doesnt match.

    Maybe it´s cause of the optionsetfield?

    In my try i wanna set the Option from the optionsetfield with the qr-code maybe i got the wrong idea

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard