Hi, I have created a Client Event Script on tag change. I want to call same script on visionWindowOpened.
Right now i have to change both script if make any change in one code.
Please help me with syntex if possible.
Use your project library, that's what it's there for?
Write a project library script that takes in "pure" inputs (ideally, simple primitive classes like numbers, strings, datasets, etc) and does whatever business logic. Adapt both call sites to extract those parameters from their environment and call the project library script.
Frist Thanks PGriffith, You means we directly we can not call any script.
Only through project library...
Basically, no. Through sufficient effort almost anything is possible in Vision, because we don't prevent you from doing it, but it is a terrible idea when a much, much better one (the project library) is right there.
2 Likes