Hello.
I’m trying to send information for a Label using the Scan Barcode (with def onBarcodeDataReceived(session, data, context) ).
I can pass information using Tag (system.tag.writeAsync(‘Writable/scantest’, vCamSerial)) but I would like to pass directly to the Label.
Button trigger onClick → Scan Barcode
Session Event:
def onBarcodeDataReceived(session, data, context)
SCRIPT.canCam([data.text])
Project Library:
def scanCam(vCamSerial):
#works but I don't want to use TAG
system.tag.writeAsync('Writable/scantest', vCamSerial)
#not works
self.getSibling("Label_0").props.text = vCamSerial
Thanks