Perspective BarcodeScannerInput reset Data Buffer after read

Hi,

i’m using the BarcodeScannerInput control and it works well. I would like to know if there is a way to keep only last item read in “data” array of control. At the moment every time i read a new barcode the control add the new item to the array (and show all data read on control).

thanks

Ok, i solve myself using script on “data”

	self.custom.lastValue = self.props.data[-1]
	self.props.data = [self.custom.lastValue]