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