# Auto Update table

**URL:** <https://community.tulip.co/t/auto-update-table/1043>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [November 6, 2020, 2:32pm UTC](https://community.tulip.co/t/auto-update-table/1043 "2020-11-06T14:32:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oshiro](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@Oshiro](https://community.tulip.co/u/Oshiro)\
**Post date:** [November 6, 2020, 2:32pm UTC](https://community.tulip.co/t/auto-update-table/1043/1 "2020-11-06T14:32:55Z")

</div>

Hello there,

I am developing a new app where I need to show in real time.  
Here is an example: imagine that I have around 15 items that need to be shaken, and each one has a diferent interval to be ready.  
I need to show in real time, or update this table in each 30 seconds to inform the user wich product is ready, wich is still being shaken and wich is not ready within an App.  
Since this products may not be the same in every day’s work. So I need a dynamic way to compare the begin date&time and the finish date&time of all elements on the table.

Here is an example:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/252e1625a1e233c83b2ea4701c8c72020257eb02.png)  
By compairing the finish date&time with the current date&time, I need to update the status color and txt .  
This table will be used to show the operator wich products are ready to use in real time.

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [November 6, 2020, 3:40pm UTC](https://community.tulip.co/t/auto-update-table/1043/2 "2020-11-06T15:40:43Z")

</div>

hello @Oshiro!! great question, thanks for posting.

there are multiple ways to check the start date and end time vs. the current time to update the status for the products in the Table.

i’ve built a little demo that checks the Current Data & Time vs. the fields in the Tulip Table and updates the status in the record on a Button click:

Table:

 ![Screen Shot 2](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/9edad8c3f059000de5d05a19dc96f166b542c2b1.jpeg)

Trigger:

 ![Screen Shot 3](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/1d9b470084493c7539ffa48152072eea18661854.jpeg)  
 ![Screen Shot 4](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/3c6968d1e8a7298603553b570fb7361fa0b4eedb.jpeg)  
 ![Screen Shot 5](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/cf6ff39fb16ba2fdf97e830d495404f51d0dee48.jpeg)

Result:

 ![Screen Shot 6](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/6b83d37a5a45748e0ac98e78bc7f35a5de13985d.jpeg)

in this case, the check is done on a button click but can just as easily be done on a 30 second timer as you mention. does this help you build what you’re trying to??

let me know if there’s something I can help clarify!!

gio

---

<div class="post-metadata">

**Author:** ![Oshiro](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@Oshiro](https://community.tulip.co/u/Oshiro)\
**Post date:** [November 6, 2020, 4:02pm UTC](https://community.tulip.co/t/auto-update-table/1043/3 "2020-11-06T16:02:51Z")

</div>

Hi Gio.

Imagine that my table has more than 20 items. I would have to prepare more than 20 triggers to check each one of them?  
I was hopping that I could run all my table lines checking the end time and current time and auto update the status collumn.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/8d055632981aab7cab1f4492aac41e03805e5c68.png)  
Is there a way where I can compare the current date and time with all finish date and time in a table and change the color status based on the result? Like :  
if (fisnish date and time \< current time) then change status color to green  
else if (current date and time is between begin and finish) then change status color to yellow  
otherwise change status color to red.

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [November 6, 2020, 4:46pm UTC](https://community.tulip.co/t/auto-update-table/1043/4 "2020-11-06T16:46:16Z")

</div>

hello @Oshiro,

you can also use an Embedded Table ([https://support.tulip.co/en/articles/3715093-displaying-interactive-lists-of-table-records-or-connector-output-in-apps](https://support.tulip.co/en/articles/3715093-displaying-interactive-lists-of-table-records-or-connector-output-in-apps)) within your app, and filter out all the records that do not meet the criteria you define. for example:

embedded table:

 ![Screen Shot 9](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/1974987d99e1c9ac714d338a11a98db41bf25d39.jpeg)  
filter:  
 ![Screen Shot 10](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/cf9d324b55b2f8cf40a3c21f1faa32df2e35586c.jpeg)

result:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/593bd8d4f9bb12e625bd7d408f39c94e47bb55f8.jpeg)

will this solution work better for you??

---

<div class="post-metadata">

**Author:** ![Oshiro](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@Oshiro](https://community.tulip.co/u/Oshiro)\
**Post date:** [November 6, 2020, 5:13pm UTC](https://community.tulip.co/t/auto-update-table/1043/5 "2020-11-06T17:13:14Z")

</div>

Almost.

What I need is a way to make this trigger to all table records at once instead loading a placeholder and configure a trigger to each item.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/f88d30fb567978aa41957a019f7200127b7e754e.png)  
Another thing, this table will not have always the same table records, so I do not want to have to manage many triggers every time I include or exclude a record of my table.

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [November 6, 2020, 6:19pm UTC](https://community.tulip.co/t/auto-update-table/1043/6 "2020-11-06T18:19:29Z")

</div>

hello @Oshiro,

to perform what you’re describing a feature to simultaneously update multiple table records is required, which is a feature we plan on adding.

keep an eye out on product releases from @jemmadupuis in [https://community.tulip.co/c/announcements/12](https://community.tulip.co/c/announcements/12) or reach out to @kevin.kononenko if you have further questions on this feature.

in the meantime, do the two solutions mentioned above help you achieve what you’d like??

gio

---

<div class="post-metadata">

**Author:** ![Oshiro](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@Oshiro](https://community.tulip.co/u/Oshiro)\
**Post date:** [November 6, 2020, 6:22pm UTC](https://community.tulip.co/t/auto-update-table/1043/7 "2020-11-06T18:22:14Z")

</div>

Sure,

Any tips are welcome and help.  
I will look forward to this new feature, meanwhile I believe that I will have to mannualy meka all the triggers one by one for each table record.

Thanks!

---

<div class="post-metadata">

**Author:** ![mathieu.rey](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mathieu.rey](https://community.tulip.co/u/mathieu.rey)\
**Post date:** [November 8, 2020, 10:01pm UTC](https://community.tulip.co/t/auto-update-table/1043/8 "2020-11-08T22:01:48Z")

</div>

Hi @Oshiro,  
Probably to prevent any duplicate triggers, you could use a kind of “loop” behavior to update all of your records.  
Currently, the way to perform loop on tulip is not automatic and you are blocked when you have to made more than 10 loops.  
Fortunately, you can use a double, tripple,… actions update to increase you “automatic update capacity”

---

<div class="post-metadata">

**Author:** ![Oshiro](https://avatars.discourse-cdn.com/v4/letter/o/0ea827/32.png) [@Oshiro](https://community.tulip.co/u/Oshiro)\
**Post date:** [November 9, 2020, 11:32am UTC](https://community.tulip.co/t/auto-update-table/1043/9 "2020-11-09T11:32:58Z")

</div>

Hi @mathieu.rey,

Could you help me giving me an example of how I can make a loop?  
I already looked into it, but I didn’t find anything about it.

Thanks

---

<div class="post-metadata">

**Author:** ![mathieu.rey](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mathieu.rey](https://community.tulip.co/u/mathieu.rey)\
**Post date:** [November 10, 2020, 7:14am UTC](https://community.tulip.co/t/auto-update-table/1043/10 "2020-11-10T07:14:05Z")

</div>

Hi @Oshiro,  
In order to simulate a loop, you must use two steps (on two screens) :

- One to compare your value counter with the number of loops desired.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/997f2356ec6cd7fe35915b60094e6fe913162737.png)
- One to make the actions wanted and go back to the previous screen  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/635b658a22c5547192a8a89a2fcc7144042f5df3.png)

By switching between this two step, triggers should decide if you need to do a additionnal loop.  
See an example :  
 ![ezgif.com-video-to-gif (1)](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/1X/3bae111ef396242638e0bc968dd8a49df9f7972e.gif)
