And if it is a client tag change script, I can see the result in the output console, correct?
@dkhayes117 happens to the best of us
@pkhoshroo Correct. Though honestly after using logging in the client I much prefer it to print statements as it wonât get flooded out by other java swing errors that may occur.
Thank you @bkarabinchak.psi and @dkhayes117.
Now I should make all my scripts organize to find the answer to my original question. Thanks a million!
I donât recommend print statements in Vision if thereâs any chance your script will run in the background. The print statements probably wonât come through in that case. The logged messages do.
So below is the summary of what I did to solve the problem based on @dkhayes117 and @bkarabinchak.psi hints:
- created a memory tag called âBarcodeScanâ in my default tag browser, this tag is being used by the barcode scanner.
- Then I created a client tag change scripts using client events called âDefaultScreenâ and have that to be triggered by the BarcodeScan tag:
- I wrote a single line script:
system.nav.swapTo('Top')
And THATâS IT!!!
Now whenever the new barcode value is entered, the default screen (Top) will be shown.
It was very easy!!! I do not know why I made it so complicated in my head!!!
That is correct! Thank you!