# How to display text from Expression Bind to Label Text

**URL:** <https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451>\
**Category:** Ignition\
**Tags:** scripting, vision\
**Created:** [June 7, 2022, 2:18pm UTC](https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451 "2022-06-07T14:18:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BRAD\_DAVIS](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brad_davis/32/35392_2.png) [@BRAD\_DAVIS](https://forum.inductiveautomation.com/u/BRAD_DAVIS)\
**Post date:** [June 7, 2022, 2:18pm UTC](https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451/1 "2022-06-07T14:18:37Z")

</div>

I am very lost with how to do this.  
All i am trying to do is show the current logged in user and current time in labels in Vision, but no matter what i try I cannot seem to find the syntax for this to work.  
Do you not do this as a text binding expression on the label?

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [June 7, 2022, 2:35pm UTC](https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451/2 "2022-06-07T14:35:18Z")

</div>

You can do this with a binding on the text property of the label.  
For the currently logged in user:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/c/bcae897172381541820979dc4be9e9a7ef67382a.png)

For the date: (this will update every 1 second)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/a/7a59abc594509457baf75c494943373940068e56.png)

---

<div class="post-metadata">

**Author:** ![BRAD\_DAVIS](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brad_davis/32/35392_2.png) [@BRAD\_DAVIS](https://forum.inductiveautomation.com/u/BRAD_DAVIS)\
**Post date:** [June 7, 2022, 3:45pm UTC](https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451/3 "2022-06-07T15:45:06Z")

</div>

Ok, that works thanks.  
In a similar vein how would i get this property to display in a label as its not listed in the system tags?  
system.util.getInactivitySeconds

---

<div class="post-metadata">

**Author:** ![zacht](https://avatars.discourse-cdn.com/v4/letter/z/ea5d25/32.png) [@zacht](https://forum.inductiveautomation.com/u/zacht)\
**Post date:** [June 7, 2022, 3:52pm UTC](https://forum.inductiveautomation.com/t/how-to-display-text-from-expression-bind-to-label-text/60451/4 "2022-06-07T15:52:02Z")

</div>

This will update every 1 second. Replace 1000 with 2000 to poll every 2 seconds.

`runScript('system.util.getInactivitySeconds',1000)`

Be very careful with runScript. There are serious performance problems if you run any script this way that interacts with the gateway (db reads/writes, tag reads/writes, etc.) I think `system.util.getInactivitySeconds` is OK, but someone may come along later and say otherwise.
