I am attempting to get some information about the perspective session from a shared script. Is there a way to access the session props from the system scripts library? I have tried
system.perspective.getSessionInfo, but it gives a list of all the sessions. I tried using
system.security.getUsername to lookup the correct session, but that function is not in the perspective scope. (I am also interested in the gateway address, but
system.util.getGatewayAddress is also not in perspective scope for some reason.) I know I can pass the session object from a component scope, but that would require a lot of refactoring. Is that really the only way?