11/18/2024 3:16 PM | |
Joined: 1/21/2013 Last visit: 9/10/2025 Posts: 4101 Rating:
|
Hi, Sorry, I forgot to reference the screen in my code. Here is a solution for having the symbolic IO field in the screen you want to change the layers visibility.
This script is for the "Change" event of the symbolic IO fields process value! Note that your approach to accessing an HMI tag by simply writing it's name as if it were a JavaScript variable will always fail. You must use the Tag object! Kind regards |
11/19/2024 2:25 PM | |
Joined: 2/26/2024 Last visit: 9/9/2025 Posts: 131 Rating:
|
Still not working. Is there any other approach on this? without script just by assigning tags? |
11/19/2024 7:31 PM | |
Joined: 1/21/2013 Last visit: 9/10/2025 Posts: 4101 Rating:
|
Hi, You have been presented with several solutions that work. But you seem to have failed several times to implement them. Yes, as I said, there are several approaches. You can use a tag dynamization for each of the 6 layers you want to make visible and invisible. However, working with the debugger can help you get a deeper understanding of how the scripts work. And it will help you to figure out the problems yourself. This is how others - including me - develop their scripts. Kind regards |
This contribution was helpful to
1 thankful Users |
Follow us on