# Perspective View Loading Screen / Execute when Done

**URL:** <https://forum.inductiveautomation.com/t/perspective-view-loading-screen-execute-when-done/35364>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [June 5, 2020, 5:30pm UTC](https://forum.inductiveautomation.com/t/perspective-view-loading-screen-execute-when-done/35364 "2020-06-05T17:30:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![downerczx](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/downerczx/32/11649_2.png) [@downerczx](https://forum.inductiveautomation.com/u/downerczx)\
**Post date:** [June 5, 2020, 5:30pm UTC](https://forum.inductiveautomation.com/t/perspective-view-loading-screen-execute-when-done/35364/1 "2020-06-05T17:30:59Z")

</div>

Hello. I’m trying to create a ‘loading’ screen for while a view is loading (usually under a second) and also I want to send a message to another view when this is done. I see that invokeLater is relegated to gateway scripts and that time.sleep is a nightmare waiting to happen. Does anyone have any thoughts on how to accomplish this? Thank you.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 5, 2020, 6:01pm UTC](https://forum.inductiveautomation.com/t/perspective-view-loading-screen-execute-when-done/35364/2 "2020-06-05T18:01:55Z")

</div>

I don’t think there’s any way to tell when a view is loading vs loaded in perspective, there’s no property change event that will tell you everything is done.

One thing that might work for views on a table is to use a property change on the data property, to see when it goes from 0 rows to N rows, then you will know the table is loaded.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [June 5, 2020, 6:06pm UTC](https://forum.inductiveautomation.com/t/perspective-view-loading-screen-execute-when-done/35364/3 "2020-06-05T18:06:50Z")

</div>

> [@bkarabinchak.psi](#):
>
> One thing that might work for views on a table is to use a property change on the data property, to see when it goes from 0 rows to N rows, then you will know the table is loaded.

What I typically do is add an embedded view for a "Loading screen" that shows a progress bar that is indeterminate. When the data property on my table (or whatever I am looking at) is None, or len() = 0 then I make my embedded view display = True, and my tables display False

Done all with bindings is typically a bit more efficient and easy to manage in my experience than the property change
