# Is it possible within Ignition Periodic Event

**URL:** <https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 16, 2022, 10:29am UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578 "2022-11-16T10:29:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 16, 2022, 10:29am UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/1 "2022-11-16T10:29:11Z")

</div>

Hi

New ignition I have a question, coming from a cimplicity background, Is it possible within ignition  
to have an event on a window that has a periodic update given a set timer to for example run a script to manipulate a component in that window on screen open.

I know you can do this in cimplicity just wondered if its possible, as I want to initalise a table on a popup window on a screen open event

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [November 16, 2022, 11:48am UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/2 "2022-11-16T11:48:50Z")

</div>

You can bind a custom property to the time and poll at a rate, then have a change script on that property to do what you want.

Example:

Custom property named `trigger` with an expression binding to `now(20000)`, will update every 20s. The change script can do whatever you want

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 16, 2022, 12:29pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/3 "2022-11-16T12:29:12Z")

</div>

> [@christopher\_wray](#):
>
> initalise a table

Is your table showing data from an sql table? If so, all you need is a query binding on the table's data prop. Also, sorry you had to use Complexity, I mean Cimplicity 😬 you're in a safe place now

---

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 16, 2022, 12:34pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/4 "2022-11-16T12:34:16Z")

</div>

I know I have seen the light 🙂 nope its a script- within a button. so when clicked updates the table component. I want the table to update every 10 secs or something.

Deon already gave me the way to do it

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 16, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/5 "2022-11-16T12:40:17Z")

</div>

My brain's a bit foggy with Vision these days (I spend all my time in Perspective now)  
But If you havent already, consider defining a function on the root container with your script in it. Then your button should call this as well as your property change event script, rather than calling the button's doClick() method - which is awkward - or worse, duplicating code, in your timer prop change script

---

<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 16, 2022, 12:44pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/6 "2022-11-16T12:44:51Z")

</div>

Since this is Vision you can use the Timer component.

[https://docs.inductiveautomation.com/display/DOC81/Vision+-+Timer](https://docs.inductiveautomation.com/display/DOC81/Vision+-+Timer)

---

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 16, 2022, 12:51pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/7 "2022-11-16T12:51:36Z")

</div>

sorry I meant instead of, Meaning not have a button at all. Thanks Irose Im gonna try that Timer component thanks.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [November 16, 2022, 1:02pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/8 "2022-11-16T13:02:45Z")

</div>

Make sure that if you are doing anything that is going out to the gateway to gather data to spin up the function using `system.util.invokeAsynchronous` [system.util.invokeAsynchronous - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.util.invokeAsynchronous) and then manipulate the vision components using `system.util.invokeLater`: [system.util.invokeLater - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.util.invokeLater)

Otherwise, your Vision client may seemingly hesitate everytime the timer fires.

---

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 16, 2022, 1:38pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/9 "2022-11-16T13:38:46Z")

</div>

worked liked a treat. Thanks.

---

<div class="post-metadata">

**Author:** ![christopher\_wray](https://avatars.discourse-cdn.com/v4/letter/c/54ee81/32.png) [@christopher\_wray](https://forum.inductiveautomation.com/u/christopher_wray)\
**Post date:** [November 16, 2022, 2:10pm UTC](https://forum.inductiveautomation.com/t/is-it-possible-within-ignition-periodic-event/66578/10 "2022-11-16T14:10:55Z")

</div>

Added this too.. cheers mate
