# Polling mode

**URL:** <https://forum.inductiveautomation.com/t/polling-mode/7165>\
**Category:** Ignition\
**Created:** [August 29, 2013, 5:04pm UTC](https://forum.inductiveautomation.com/t/polling-mode/7165 "2013-08-29T17:04:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJBerera](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@AJBerera](https://forum.inductiveautomation.com/u/AJBerera)\
**Post date:** [August 29, 2013, 5:04pm UTC](https://forum.inductiveautomation.com/t/polling-mode/7165/1 "2013-08-29T17:04:42Z")

</div>

is this property scriptable? for example, If I have an event viewer which is a table can I create a pause button that will effectively toggle the polling mode between off and relative?

---

<div class="post-metadata">

**Author:** ![james.hunt](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@james.hunt](https://forum.inductiveautomation.com/u/james.hunt)\
**Post date:** [August 30, 2013, 5:32pm UTC](https://forum.inductiveautomation.com/t/polling-mode/7165/2 "2013-08-30T17:32:38Z")

</div>

No, polling mode is not scriptable. It is not a property of the table, but of the binding itself, and that is not publicly accessible.

A workaround to this would be to use system.db.refresh() function in a property change script in a timer component. The table data property should have polling mode set to off. Then in the property change script call system.db.refresh(). Then you can have a button to toggle the timer on/off.

- set the polling mode to off in the binding of the data
- create a button to toggle timer on/off
- in the property change script in the timer component, call system.db.refresh(); it will look something like this:

`if event.propertyName == "value":
	if event.newValue == 0:
		system.db.refresh(event.source.parent.getComponent('Table'),"data")`

This will simulate polling mode on/off.
