Session custom Barcode scanner

Hello,

I try to use a barcode component to write a custom session property.

Everything works if I'm using a tag but when I try to write it to a custom session property, it doesn't write anything to her.

line = [data.text][0]
system.tag.write('[TAGTest]BAR', line) #works fine
session.custom.Scanned_Barcode = line #doesn't write it

Script it's on 'Session Events' - 'Barcode'

I tried also with a message handler, same situation unfortunately

I fixed it, it was my fault. I made the variable on root (page) instead of session. :slight_smile: