# Perspective Table binding

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-binding/100206>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 25, 2024, 5:32pm UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206 "2024-12-25T17:32:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tokyo\_mht](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tokyo\_mht](https://forum.inductiveautomation.com/u/Tokyo_mht)\
**Post date:** [December 25, 2024, 5:32pm UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206/1 "2024-12-25T17:32:07Z")

</div>

I have a table in a perspective view where i will be creating some data but asynchronously, which may take time. To ensure the table updates dynamically , I added

> **Now()**

in the data binding and fetched table data using script . Is this correct approach of using

> **Now()**

in the expression binding.?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 25, 2024, 11:23pm UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206/2 "2024-12-25T23:23:33Z")

</div>

That will cause the table data to update at the default polling rate, typically 1000 ms.  
`now()` ← Update at the default polling rate.  
`now(0)` ← Evaluate once at loading.  
`now(1234)` ← Evaluate every 1234 ms.

How are you creating the data?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [December 26, 2024, 12:29am UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206/3 "2024-12-26T00:29:54Z")

</div>

I recommend polling at a rate you need to see the data. If you only update the data ever 10-15 seconds only poll every 10,000ms.

I like to optimistically poll data meaning if It is going to happen in the next 15 seconds I will want to poll twice possibly in that 15 seconds (7s) to make it feel more realtime, but that may not work for all situations.

---

<div class="post-metadata">

**Author:** ![Tokyo\_mht](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tokyo\_mht](https://forum.inductiveautomation.com/u/Tokyo_mht)\
**Post date:** [December 26, 2024, 5:55am UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206/4 "2024-12-26T05:55:52Z")

</div>

How are you creating data?  
Inserting it to database and there are other process which takes time and it's not single data insertion, in a single fetch inserting more than 100 data.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 26, 2024, 10:24am UTC](https://forum.inductiveautomation.com/t/perspective-table-binding/100206/5 "2024-12-26T10:24:03Z")

</div>

Does your script not know when the data insert is finished? If it does, then use a message handler at that time to refresh the data binding. That way it becomes event based and not timer based.

* * *

Tips:  
 ![Discourse editor](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/542d9ef414e09d085088bb8ace48b1dfad82c8d8.png)

Use the Blockquote button to quote somebody else.  
Use the Preformatted Text button to format code (such as `now()` in your original post).

See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831) for more.
