Using Ignition 8.1.43 to create Perspective pages that will be used within our production space by multiple people. These views are Public and do not require authentication. I am looking for a way to persist values or selections within Perspective so when the browser is closed and re-opened the values load back in. From my understanding session props are only available while the session is open and once the browser is closed these go away. I was looking into using browser local storage or cookies, but it seems that because perspective scripts are gateway scoped this may not be an option. Any thoughts or ideas would be greatly appreciated.
If this is based on a particular computer in your local network, you may be able to use the client IP as a primary key for storing selections in a database table, and just load the table values on startup of the views.
1 Like
You can also use UDTs. Create the tags of the data you want to save, then instantiate the UDT with a unique id that corresponds to the username or some other identifier.
Periods cannot be used in tag names, so you'll have to get a little more creative than straight IP addresses.
Our HMIs are static IPs with dedicated subnets, so I use an expression that creates an ID like Silo 24
where 24 is the last octet of the IP.
After that, bind the UDT tags to your props with bidirection on.