Hi,
I just get started on Ignition design and trying to replicate the lock screen/ switch user/ lockout button and showing the current time/ alarms like the image down below. I have seen this a couple times now, is there an already built in template for this or will I need to create every one of them as a button? If so, would I create 3 seperate buttons for the functions and a label that updates every second?
Thanks

1 Like
Hi,
To implement this, you can create a template and utilize the following functions into a script. You can then add these scripts to either labels or buttons to represent each function.
Vision:
https://docs.inductiveautomation.com/display/DOC81/system.security.lockScreen
https://docs.inductiveautomation.com/display/DOC81/system.security.switchUser
https://docs.inductiveautomation.com/display/DOC81/system.security.logout
Perspective:
Perspective does not have the scope outside the browser to do a lock screen functionality. The workaround for this would be to use the Perspective's log out system function.
Here is the documentation on that system function: system.perspective.logout - Ignition User Manual 8.1 - Ignition Documentation
A workaround for switching a user in perspective would be to call system.perspective.logout
which will log the current user out. You can then call system.perspective.login
to redirect them to the IdP to login as a new user.
3 Likes