You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing email@example.com.
We are experiencing playback issues from our video hosting provider. Please check back shortly.
6:30Component and Window Security
1:43Securing Event Handlers
Take topic challenge
Setting Client Read-Only
Learn how to set the Read/Write mode on the Client using an Event Script function. Similar to the buttons in the Designer, this function can be used to set Disconnected, Read Only, and Read/Write modes in any script in Ignition that runs in a Client.
Video recorded using: Ignition 7.9
Transcript(open in window)
[00:00] The client's read write mode can be set using a script, and here you can see I have a couple buttons, and a numeric text field. The numeric text field is linked to this New Tag, it's bidirectionally bound, so if I type into it, it should modify that tag. Now by default, all of your clients are going to be in read write mode, but I have two buttons here, I'm going to go and look at the scripting for my read only. And it's a pretty simple script, all we have to do is call system dot util dot set connection mode, and here, if you look at the description of it, you can see that one is disconnected, two is read-only, and three is read write. So that means I am sending it for read-only to two, and for read write to three. Now I can go into the client here. Once I'm in the client, you can see that if I type in some value here, we can write, changes the value to 50. If I change it to a read only mode, now when I try to write a new value, we get an error message saying that my tag can not be written to, because the Comm Mode is not read write. I can click on my read write again, and go back to some of the value, and this is useful because you can have this scripting based on anything that you want. So based on certain people logging in, or going to certain screens, or however you want to set it.