# Process order and invokeLater time

**URL:** <https://forum.inductiveautomation.com/t/process-order-and-invokelater-time/39975>\
**Category:** Ignition\
**Created:** [October 23, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/process-order-and-invokelater-time/39975 "2020-10-23T20:38:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven.cox](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steven.cox/32/18589_2.png) [@steven.cox](https://forum.inductiveautomation.com/u/steven.cox)\
**Post date:** [October 23, 2020, 8:38pm UTC](https://forum.inductiveautomation.com/t/process-order-and-invokelater-time/39975/1 "2020-10-23T20:38:36Z")

</div>

Hi all,

I have a script to run to select the first tab on a tab strip (if a tab exists). I added this script to the property change event of a dropdown that provides input to the dataset of the tabs.

When a dataset changes, it recreates the tab datast.

The problem is, the firstTab function runs too fast and it looks at the old tab dataset.

So I added an invokeLater function so that it runs after the tabs have been recreated. Works great.

My question is, what time frame can I count on for it to work but not have to “wait”. at 250ms it works fine. 250ms works fine for me because I will always be on a local host. However, if this was on deployed system on a network, would that still be enough?

I will likely do away with it at some point, but for now it works.

Thanks, Steven

---

<div class="post-metadata">

**Author:** ![DavidWisely](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davidwisely/32/10482_2.png) [@DavidWisely](https://forum.inductiveautomation.com/u/DavidWisely)\
**Post date:** [October 24, 2020, 1:06am UTC](https://forum.inductiveautomation.com/t/process-order-and-invokelater-time/39975/2 "2020-10-24T01:06:54Z")

</div>

It depends on where you update your dataset from. If it’s from a database then it will be affected by network speed, but if it’s just from a script or client tags then it’s independant from the network. I would make the dataset update script only reference local data with client tags or such, and this will give you a more consistant update time no matter where it is run.

---

<div class="post-metadata">

**Author:** ![steven.cox](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steven.cox/32/18589_2.png) [@steven.cox](https://forum.inductiveautomation.com/u/steven.cox)\
**Post date:** [October 24, 2020, 2:08am UTC](https://forum.inductiveautomation.com/t/process-order-and-invokelater-time/39975/3 "2020-10-24T02:08:54Z")

</div>

@DavidWisely,

That makes since. I actually reference the dataset directly and not the table so that works out perfectly.

Thanks, Steven
