Last updated: 06.12.2023

Applies from: Opter 2023.12.00, Opter Driver for Android 2.0.1

Displaying scans of the same shipment in a block (Opter Driver)

If the driver scans several packages on the same shipment, the result of the scan can be displayed in a single block in the scan list, instead of one block per package. The package being scanned is highlighted in green and placed at the bottom of the block. This makes it easy to see which packages on the order have been scanned and which have not yet been scanned. It is also possible to add information from the package rows, such as weight and package type, so that the user can see what type of package to look for.

Step 1: Set the mobile data setting

Set the OneScanRowPermission mobile data setting to “True”. For instructions on how to set up mobile data settings, see Mobile data settings (window).

Step 2: Customise App.Design

What is displayed about each scan in the scan list is controlled via the following variables in the <scanrows> section in App.Design:

Example

Copy code
The scanrows section in App.Design
        <scanrows>
      <row>
        <item font="BOLD" itemname="CREDITEDTOOTHERRESOURCEBLOCK"/>
      </row>
      <row>
        <item font="BOLD" itemname="CREDITEDTOOTHERRESOURCEWARNING"/>
      </row>
      <row>
        <item font="BOLD" itemname="CREDITEDTOOTHERRESOURCE"/>
      </row>
      <row>
        <item itemname="STATUS,PACKAGECOUNT"/>
      </row>
      <row>
        <item itemname="PACKAGE.PACKAGEID,' ',PACKAGE.STATUS,' ',PACKAGE.DIMENSIONS" multiline="true"/>
      </row>
      <row>
        <item itemname="ADDRESSINDEXTITLE,ADDRESSINDEX"/>
      </row>
      <row>
        <item itemname="FREIGHTBILLTITLE,FREIGHTBILL"/>
      </row>
      <row>
        <item itemname="PACKAGEIDTITLE,PACKAGEID"/>
      </row>
      <row>
        <item itemname="ADDRESSFROMTITLE,ADDRESSFROM"/>
      </row>
      <row>
        <item itemname="ADDRESSTOTITLE,ADDRESSTO"/>
      </row>
    </scanrows>

The above code gives the following results. The block contains several rows of information, <row></row>, and one of the rows has a line break if the information does not fit on one line, multiline="true".

  1. STATUS,PACKAGECOUNT

  2. PACKAGE.PACKAGEID

  3. PACKAGE.STATUS

  4. PACKAGE.DIMENSIONS: Retrieves PackageDimensionsString from the mobile data settings, “| Package type: {14} | Weight {1:0.##} kg | Volume: {2:0.##}”.

  5. FREIGHTBILLTITLE: FREIGHTBILL

  6. ADDRESSFROMTITLE: ADDRESSFROM

  7. ADDRESSTOTITLE: ADDRESSTO

For more information about the variables, see The scan list in Opter Driver and Placeholders in App.Design.


See also

Mobile data settings (window)

The scan list in Opter Driver

Placeholders in App.Design