cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aurélien
Level: Powered On

Réinitialiser un code bare

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-goog...

 

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...)


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

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

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

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.

2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: Réinitialiser un code bare

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

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Aurélien
Level: Powered On

Re: Réinitialiser un code bare

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-... http://image.noelshack.com/fichiers/2018/49/5/1544173435-peconline-national-enregistrees-non-publiee... http://image.noelshack.com/fichiers/2018/49/5/1544173435-peconline-national-powerapps-google-chrome-... Sur la deuxieme, j'ai défini la valeur par defaut de mon textinput3 : QR.text

 

Merci par avance

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 97 members 3,716 guests
Please welcome our newest community members: