Thanks for your help it is working now. I can see string go through this property,
However, I can’t make Session Event Barcode Scanned to write in to the tag as suggested on Perspective manual.
Unfortunately this is not working.
So, I tried to set up Barcode scanner input and it works partially as I have scanned only GLW7227932. But it updates Tag with this string
[[GLW7227932, Good, Thu Jan 01 01:00...
So I added custom property to format this in to GLW7227932
Then I have script to add this number in to sql as part of “change script”.
SerialNO = self.custom.key
id_Component = 32
Status = 1
t_stamp = datetime.datetime.utcnow()
query = "INSERT INTO Production_Progress (Serial_Number, id_Component, Status, t_stamp ) VALUES (?,?,?,?)"
args = [SerialNO, id_Component, Status, t_stamp ]
The problem I have is that even if I scan once system will run this qry 2-3 times.
So I am getting double entries.
My question is:
- Why Session Event Barcode Scanned is not working
- How to qry once the barcode is scanned.