Hi connection.
Here I used some system function in the Vision where I can use the same system function in Perseptive or any alternate. method need to try with that function.
Thank you,
Adarsh
Hi connection.
Here I used some system function in the Vision where I can use the same system function in Perseptive or any alternate. method need to try with that function.
Thank you,
Adarsh
https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo
username Either the username of the logged in user if authenticated, or "Unauthenticated" if an unauthenticated Session.
You can also just directly reference the session properties, to avoid the overhead of the function call.
It depends on which scripting area you're using, because the availability of arguments dictates the source your reference, but for most scripts you'd reference self.session.props.auth.user.userName
(assuming a source of self
). Inside of expressions you'd use {this.session.props.auth.user.userName}
.
Thank you @cmallonee