2022.2

Table Of Contents
Iftheinlineboxisn'tvisible,clicktheShowEdges buttoninthetoolbar.
Capture OnTheGo API
AsofConnect1.8,cotg-2.0.0.jshasreplacedthecotg-1.x.jsversionsoftheCaptureOnTheGo
(COTG)plugin,introducingeventsandoptionsforCOTGwidgets.Thistopiclistsallavailableoptions
andcustomeventsforwidgets,aswellastheirinitializationfunction.
WithOLConnect2021.1theCOTGlibraryhasbeenupdatedtoversion2.1.0tosupportnestedfields
tablesinCOTGFieldsTableelements.ThisalsofixedanissuewiththeCOTGCameraWidgetthat
occurredwhenitwasusedinaCOTGFieldsTable.
HowtousetheCOTGpluginisexplainedinthefollowingtopic:"UsingtheCOTGplugin"onpage545.
Tolearnhowtocreatewidgetsincode,see"DynamicallyaddingCOTGwidgets"onpage548and
"Savingandrestoringcustomdataandwidgets"onpage551.
ForalistofallCOTGelementsandtheirintendeduse,see"COTGElements"onpage633.
BarcodeScanner
cotgBarcode()
InitializingaBarcodeScannerelementpreparesitforuserinteraction.
Example: $('myScanner').cotgBarcode();
Events
TheBarcodeScannerlistens forthefollowingevents.
Event Description
clear.cotg
RemovesthescannedBarcodedata.
scan.cotg
Opensthescanner.
TheBarcodeScannerbroadcaststhefollowingevents.
Event Description
set.cotg
ThiseventisfiredafterBarcodedatahasbeensettothevalueoftheinput.
Page 557