how to scan QR code mobile application

Discussions regarding 1C:Enterprise for mobile devices with Android, iOS, or Windows Phone.

#1
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

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?

Edited: Mehmet Tuğrul SARIÇİÇEK - Aug 24, 2015 05:00 AM
 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 1, 2014
Company: Smart ID Dynamics

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.

 
#3
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Marius Gidu,

Thank you so much

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.