# Display info in perspective screen

**URL:** <https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 28, 2022, 2:45pm UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973 "2022-11-28T14:45:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [November 28, 2022, 2:45pm UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973/1 "2022-11-28T14:45:34Z")

</div>

Hi all,  
I have a perspective screen on which I want to display the following details. Is it possible to do it?

1. Gateway version
2. version no. of an installed module(sepasoft)
3. dateTime of when project was last updated
4. current browser on which the session is running
5. OS on which session is running

I went through session.props and couldn't find these properties

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [November 28, 2022, 3:42pm UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973/2 "2022-11-28T15:42:54Z")

</div>

> [@user66](#):
>
> 1. Gateway version
> 2. version no. of an installed module(sepasoft)
> 3. dateTime of when project was last updated

You would have to get this information from the Gateway, which would probably require getting a GatewayContext.

> [@user66](#):
>
> 1. current browser on which the session is running

You would need to use Javascript to get this, I don't know the exact code.

> [@user66](#):
>
> 1. OS on which session is running

Good luck. Browsers purposefully prevent access to the client machine for security. Why exactly do you need this information? The clients OS should make zero difference for Perspective.

The first 4 I can understand, and honestly, this sounds like a job for a custom component.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 28, 2022, 3:43pm UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973/3 "2022-11-28T15:43:16Z")

</div>

You might be able to derive 4 and 5 from the `device.userAgent` Session Prop, but it won’t be entirely reliable.

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://forum.inductiveautomation.com/u/user66)\
**Post date:** [November 29, 2022, 11:58am UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973/4 "2022-11-29T11:58:05Z")

</div>

> [@lrose](#):
>
> You would have to get this information from the Gateway, which would probably require getting a GatewayContext.

I'm not really aware how GatewayContext works. Is there documentation for it?  
I could only find this link:[GatewayContext](http://files.inductiveautomation.com/sdk/javadoc/ignition80/8.0.0-beta/com/inductiveautomation/ignition/gateway/model/GatewayContext.html)

the below code throws an error

```auto
	from com.inductiveautomation.ignition.gateway import IgnitionGateway
	context = IgnitionGateway.getGatewayModules()

```

only ` context = IgnitionGateway.get()` works, which gives the information on the state

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 29, 2022, 1:49pm UTC](https://forum.inductiveautomation.com/t/display-info-in-perspective-screen/66973/5 "2022-11-29T13:49:37Z")

</div>

[GatewayContext](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/ignition/gateway/model/GatewayContext.html) is documented, but note that it is an interface, not a class. The one Implementation is an internal resource and if you use it, do not expect any support.

You obtain the one implementation (it uses the singleton pattern) with the static method `.get()`, like so:

```auto
from com.inductiveautomation.ignition.gateway import IgnitionGateway
context = IgnitionGateway.get()

```

Then, you can use the interface methods on `context`.

But again, don't ever bother IA support with anything you get, or any breakage you cause.
