Hi everyone;
In my mobile configuration, I have to do barcode scanning. I have to scan barcode, handle value of the barcode and get to material of this barcode.
Here my code.
Code |
---|
&AtClient Procedure BarkodScan(Command) #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 Then BarcodeToSearch = BarCode; #If MobileAppClient Then MultimediaTools.CloseBarcodeScanning(); #EndIf CrrMat = BarcodeScan.FindMatByBarcode(BarcodeToSearch); mActiveRow = Object.Satırlar.Add(); mActiveRow.Malzeme = CrrMat; SrvStrMlzOnChg(mActiveRow.GetID()); EndIf; EndProcedure |
I can't test now because I have no android device until tomorrow, İs that true?