Loading
Feature degradation | Gmail Email delivery failureRead More
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Support for Bluetooth Laser Barcode Scanner on iOS

          Support for Bluetooth Laser Barcode Scanner on iOS

          The Consumer Goods Cloud offline mobile app supports bluetooth laser barcode scanners on the iOS platform. When you scan a barcode by using a bluetooth laser barcode scanner, a barcodeScanned event is generated which can be handled by using the View action process contracts.

          Example of an barcodeEvent:

          <Action actionType="View" name="ShowView">
              <UIDescription>FrameworkReference::AppleBtKbScannerUI</UIDescription>
              <Events>
                  <Event name="barcodeEvent" action="scan" />
              </Events>
          </Action>
          

          The Process contract supports the ExternalEvents element to add the barcode event as an external event as shown in here:

          <ExternalEvents>
              <Event name="barcodeEvent" action="scan" />
          </ExternalEvents>
          

          The event contains a single parameter code that corresponds to the scanned barcode as a String value.

          Create a barcodeScanned event handler by using this XML code.

          <Action name="scan" actionType="LOGIC" call="ProcessContext::btHelper.setBarcodeFromEvent">
              <Parameters>
                  <Input name="barcodeData" value="event.code" />
              </Parameters>
          </Action>
          

          Due to technical reasons, only the characters and digits with an ASCII code between 32 (SPACE) and 127 (DEL) are recognized. Furthermore, ASCII code 10 (line feed) and 13 (carriage return) are supported. All other characters aren’t recognized during scanning and can’t be used for scanning prefixes and suffixes. For more information on creating barcode events in Visual Studio Code Based Modeler, see Barcode.

           
          Loading
          Salesforce Help | Article