how to handle value from barcode scan

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;

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?

Edited: Mehmet Tuğrul SARIÇİÇEK - Sep 29, 2015 06:27 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Mehmet Tuğrul SARIÇİÇEK!

You can find an example how to scan a barcode in Mobile application demo.

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

Timofey Bugaevsky,

Thank you Timofey, but in your link doesn't have any cnf or db file. I already have mobile version of 1C:Enterprise, I need cnf or db file of example of mobile barcode scanning demo. Could you help me please?

 
#4
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Mehmet Tuğrul SARIÇİÇEK,

Please, see the Installing full version section. The .cf file is included in the installation package and will be placed in 1C templates folder.

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

Timofey Bugaevsky,

Hello Timofey;

Is your said this link?

Could you put example on internet side as 1C:Company? Like this, It'll be easier than. Do you agree me?

And I couldn't see .cnf file in rar archives sir. Only just setup files, I wouldn't load any setup file to my computer.

Thank you for your interest.

Edited: Mehmet Tuğrul SARIÇİÇEK - Oct 06, 2015 06:51 AM
 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Mehmet Tuğrul SARIÇİÇEK,

The installation package creates a folder in the configuration template directory. And places .cf and/or .dt files with configuration template and application demo database dump. When you create an infobase using this template, those files are restored.

So I suggest you to download that package, install the template and create an infobase to get the configuration.

The other option is to find .cf file in the configuration template folder.
For more details, please, see Chapter 3. Installation of configurations of Administrator guide.

Download 1.png (39.31 KB)
Download 2.png (38.19 KB)
Download 3.png (13.31 KB)
Download 4.png (20.21 KB)
 
#7
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

The other option is to download from the platform download page. If you have it purchased.

Download 1.png (70.48 KB)
 
#8
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Timofey Bugaevsky,

Thank you Timofey;

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