Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise. Mobile platform > how to scan QR code mobile application

Forum

Search UsersRules
how to scan QR code mobile application
#1
Active user
Points:: 0
Joined:: Jul 28, 2015

Hi everyone,

I am developing the mobile application what is integreted ours main configuration.
I have to find Current Account by barcode.

How can I do that? How can I read QR code in 1C:Enterprise?

edit: I mean, I know how to open barcode scan screen.

Code
#If MobileAppClient Then
      BarcodeScanProcessor = New NotifyDescription("BarcodeScanProcess", ThisObject);
      BarcodeScanCloseProcessor = New  NotifyDescription("BarcodeScanProcessScreanClose", ThisObject);
      MultimediaTools.ShowBarcodeScanning("Get image into the barcode frame", BarcodeScanProcessor, BarcodeScanCloseProcessor, BarcodeType.Linear);
#EndIf

in this way I can open barcode read screen but I don't know anything about How to filling in BarcodeScanProcess and BarcodeScanCloseProcessor procedures.

Could you help me please?

Profile
#2
Active user
Points:: 0
Joined:: Sep 1, 2014

Hello.

Here it is an example:

Code
&AtClient
Procedure ScanBarcode ()
   
   #If MobileAppClient Then      
      StartScanNotify = New NotifyDescription("BarcodeScanProcess", ThisObject);
      EndScanNotify = New  NotifyDescription("BarcodeScanProcessClose", ThisObject);
      MultimediaTools.ShowBarcodeScanning("Scanare cod de bare",StartScanNotify ,EndScanNotify,BarcodeType.All);
   #EndIf
   
EndProcedure


&AtClient
Procedure BarcodeScanProcess (BarCode, Result, Message, AditionalParameter)  Export

   //If Result is TRUE then BarCode is the decoded barcode received from the scanner
   If Result Then
      BarcodeToSearch = BarCode; 
      #If MobileAppClient Then
   
         //Close the scanning interface when Result is TRUE and is #MobileClientApp
         MultimediaTools.CloseBarcodeScanning();
      #EndIf
   EndIf;
EndProcedure



Hope it will help you.

Profile
#3
Active user
Points:: 0
Joined:: Jul 28, 2015

Marius Gidu,

Thank you so much

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.