Export (0) Print
Expand All

How to: Set Up Barcode Scanning for Mobile Sales

Mobile Sales supports the use of barcode scanners in Itermec and Symbol devices. For example, you can use a barcode scanner to find items when making a sales order. This topic describes how to set up Mobile Sales to use Itermec and Symbol bar scanners. The setup involves adding Itermec and Symbol assemblies for the barcode scanner, and then modifying the Mobile Sales app.config and UserRole.xml files.

For information about installing Mobile Sales, see How to: Install Microsoft Dynamics Mobile - Device Components.

To set up a Symbol barcode scanner in Mobile Sales

  1. In the Symbol SMDK, find the barcode scanner assemblies, Symbol.dll and Symbol.Barcode.dll, and copy them to the Mobile Sales installation folder for the mobile device.

  2. Open and modify the Mobile Sales app.config file as follows:

    The default location is C:\Program Files\Microsoft Dynamics Mobile\Mobile Sales\Client\Application. For more information, see How to: Install Microsoft Dynamics Mobile - Device Components.

    1. In the service settings section, in the <services> element, add the following element:

      NoteNote

      By default, the following code is included in the app.config within comment tags. To enable barcode scanning, remove the comment tags.

      <add type="Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanningService, Microsoft.Dynamics.Mobile.Framework.Runtime">
        <configuration>
          <scannerType>Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanning.Symbol.ScannerDevice, Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanning.Symbol</scannerType>
        </configuration>
      </add>
      
    2. Save the changes and copy the app.config file to the Mobile Sales installation folder for the mobile device.

  3. Modify the UserRole.xml file of Mobile Sales as follows:

    The default location is C:\Program Files\Microsoft Dynamics Mobile\Mobile Sales\Client\Application.

    1. In the Order Wizard orchestration, locate the following element:

      <tasklet name="Basket" text="Ordered products" context="Tasklet header wizard step;29"
               type="Microsoft.Dynamics.Mobile.Components.Tasklets.SimpleListTasklet, Microsoft.Dynamics.Mobile.Components.Tasklets.SimpleList" />
      
    2. In the Simple List tasklet configuration, in the data settings section, in the <listView> element, add the following code:

      NoteNote

      By default, the following code is included in the UserRole.xml file within comment tags. To enable barcode scanning, remove the comment tags.

      <barcodeScanner>
        <![CDATA[
          SELECT ItemId FROM ItemBarCode
          WHERE (BarCode = @Barcode)
        ]]>
      </barcodeScanner>
      
    3. Save the changes and copy the UserRole.xml file to the Mobile Sales installation folder for the mobile device.

To set up an Intermec barcode scanner in Mobile Sales

  1. In the Intermec IDL, find the barcode scanner assembly Intermec.DataCollection.CF2.dll and copy it to the Mobile Sales installation folder for the mobile device.

  2. Modify the Mobile Sales app.config file as follows:

    The default location is C:\Program Files\Microsoft Dynamics Mobile\Mobile Sales\Client\Application. For more information, see How to: Install Microsoft Dynamics Mobile - Device Components.

    1. In the service settings section, in the <services> element, add the following code:

      NoteNote

      By default, the following code is included in the app.config file within comment tags. To enable barcode scanning, remove the comment tags.

      <add type="Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanningService, Microsoft.Dynamics.Mobile.Framework.Runtime">
        <configuration>
          <scannerType>Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanning.Intermec.ScannerDevice, Microsoft.Dynamics.Mobile.Components.Services.BarcodeScanning.Intermec</scannerType>
        </configuration>
      </add>
      
    2. In the preload DLL section, in the <dlls> element, add the following elements:

      <add dll="itcscan.dll" />
      <add dll="ITCComServer.dll" />
      <add dll="S9CISCPPH.dll" />
      
    3. Save the changes and copy the app.config file to the Mobile Sales installation folder for the mobile device.

  3. Modify the UserRole.xml file of Mobile Sales as follows:

    The default location is C:\Program Files\Microsoft Dynamics Mobile\Mobile Sales\Client\Application.

    1. In the Order Wizard orchestration, locate the following element:

      <tasklet name="Basket" text="Ordered products" context="Tasklet header wizard step;29"
               type="Microsoft.Dynamics.Mobile.Components.Tasklets.SimpleListTasklet, Microsoft.Dynamics.Mobile.Components.Tasklets.SimpleList" />
      
    2. In the Simple List tasklet configuration, in the data settings section, in the <listView> element, add the following code:

      NoteNote

      By default, the following code is included in the UserRole.xml file within comment tags. To enable barcode scanning, remove the comment tags.

      <barcodeScanner>
        <![CDATA[
          SELECT ItemId FROM ItemBarCode
          WHERE (BarCode = @Barcode)
        ]]>
      </barcodeScanner>
      
    3. Save the changes and copy the UserRole.xml file to the Mobile Sales installation folder for the mobile device.

See Also

Community Additions

ADD
Show:
© 2015 Microsoft