Official Content

The purpose of this article is to explain the necessary steps to configure and use the ScanInLoop method offered by the Scanner external object.

This method returns a Structured Data Type of ScannedBarcodes, and receives a Boolean data type indicating if a beep will be played on each read.

Scanner external object - v18


In this example, the ScanInLoop method is used to load a Grid with all the scanned codes (this is one way to use the information obtained, there are many ways to use it).

Step 1

Define a Panel object with a variable defined as follows:

ProductsRead - barcode - variable v18

Step 2

Add the variable to the layout and add a button to start the scanning:

Panel for scannin method for native mobile - v18

Step 3

Create a new Event for the "Start Scan" button to use this method.

Event 'Start Scan'
       &ProductsRead = Scanner.ScanInLoop(True)

Note that the ScanInLoop = True has been defined, so a beep sound will be played each time a code is scanned.

When scanning the codes, it will automatically open the scan application and save each code it reads. When the scan is stopped, the application will return to the Panel created and all the scanned codes will be displayed.


  • In Apple this Scanner is available for iPhone, iPad2 and iPod with iOS 4.X.
  • The beep sound is always played in Android.

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant