Is Perspective BarCode Scan write the data to different global tags

I have design 3 views and all of them have the function use the camera to scan the barcode to read the data and need transfer the data to different tags

but in the training video, if seems only can transfer to one decidate tag.
My problem is , all the barcode infomation is very similar, so I can’t use tag’s data to check which infomation is base on which view.

So is that possible to realize the scaned data transfer to the tag based on the view?

Use a custom session property to maintain state. Write your view state (view name, perhaps) to that property just before you initiate the scan. Check the state property in the scan event to decide what to do.

1 Like


I have try your suggestion like this, thanks a lot

You can also decorate the ‘Scan Barcode’ action with context (any arbitrary, static key/value pairs):

And then read that context in during the Barcode Scanned event: