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 / Réinitialiser un code ...
Power Apps
Unanswered

Réinitialiser un code bare

(0) ShareShare
ReportReport
Posted on by 32

Bonjour ,

Je me permets de poser ma question ici, car même aprés avoir lu des forum portant le même sujet, je ne parvient pas à résoudre mon probléme.

 

Mon application est basé sur un SharePoint.

Une Liste "Equipement" permets de pouvoir effectuer un inventaire.

Voici un extrait de cette liste:

http://image.noelshack.com/fichiers/2018/49/4/1544090732-peconline-equipement-tous-les-elements-google-chrome.jpg

 

Dans Power Apps voici ce que j'ai configuré (trouvé ici :https://powerusers.microsoft.com/t5/Community-Video-Gallery/Create-a-Bar-Code-Scanner-with-PowerApps-Followup/td-p/168926)


http://image.noelshack.com/fichiers/2018/49/4/1544090732-peconline-national-powerapps-google-chrome-3.jpg

http://image.noelshack.com/fichiers/2018/49/4/1544090733-peconline-national-powerapps-google-chrome-4.jpg

http://image.noelshack.com/fichiers/2018/49/4/1544090733-peconline-national-powerapps-google-chrome-5.jpg

Cependant ce fonctionnement ne permet pas de reset le code bare.

De ce fait, pour chaque équipement le Code_Equt par défaut correspond au dernier code barre scanner.

 

Merci par avance au personne, m'aidant à trouver ma solusion.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Aurélien,

    Could you please share a bit more about your scenario?

    Do you mean that the Code_Equt column value within your SP list could not be updated?

    How do you save your barcode into your SP list data source?

    Further, do you want to reset the barcode the Barcode control captured?

    Currently, Reset functionality is not supported in Barcode control itself within PowerApps. As an alternative solution, you could consider take a try to reset the context variable using Reset button within your app.

    I have made a test on my side, please take a try with the following workaround:8.JPG

     

    9.JPG

     

    10.JPG

    Set the OnSelect property of the "Scan Barcode" button to following:

    UpdateContext({barcode1: ScanBarcode()})

    Set the OnSelect proeprty of the "Reset" button to following:

    UpdateContext({barcode1: Blank()})

    Set the Default property of the Text Input box to following:

    barcode1

    Note: If you want to reset your barcode, please click "Reset" button.

     

    Best regards,

    Kris

  • Aurélien Profile Picture
    32 on at

    Bonjour @v-xida-msft

     

    Je ne parle pas bien anglais, mais suffisament pour dire: - "Thank you" !!!

     

    Maintenant j'aimerais que le code que je scanne pour un équipement, ne se réinitialise pas si je veux modifier un élément du formulaire. Car aujourd'hui , si je souhaite modifier mon "Equipement" ( ex: marque ou référence....) je suis obligé de re-scanner le code de cet équipement. Voici quelques images. http://image.noelshack.com/fichiers/2018/49/5/1544173434-peconline-national-powerapps-google-chrome-6.jpg http://image.noelshack.com/fichiers/2018/49/5/1544173435-peconline-national-enregistrees-non-publiees-powerapps-google-chrome.jpg http://image.noelshack.com/fichiers/2018/49/5/1544173435-peconline-national-powerapps-google-chrome-7.jpg Sur la deuxieme, j'ai défini la valeur par defaut de mon textinput3 : QR.text

     

    Merci par avance

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 194 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 150

Last 30 days Overall leaderboard