# View Load event in perspective

**URL:** <https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [July 16, 2020, 2:03pm UTC](https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770 "2020-07-16T14:03:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvisser](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jvisser](https://forum.inductiveautomation.com/u/jvisser)\
**Post date:** [July 16, 2020, 2:03pm UTC](https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770/1 "2020-07-16T14:03:52Z")

</div>

Hello,

I have a script in my perspective view that is responsible for setting the data of a grid in my view. I added a script action to my grid component onStartup. I have read the documentation in the link below that suggests this should be the correct event. When I refresh the view the event is not firing. Is this the correct event? Or, is there another event I should bind to? The script needs to run every time the view is loaded or refreshed.

[https://docs.inductiveautomation.com/display/DOC80/Perspective+Event+Types+Reference](https://docs.inductiveautomation.com/display/DOC80/Perspective+Event+Types+Reference)

Thanks,  
Jordan

---

<div class="post-metadata">

**Author:** ![rrivera](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@rrivera](https://forum.inductiveautomation.com/u/rrivera)\
**Post date:** [September 1, 2020, 8:13pm UTC](https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770/2 "2020-09-01T20:13:05Z")

</div>

Did you ever find an answer for this? I’m kinda having a similar issue

---

<div class="post-metadata">

**Author:** ![jvisser](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jvisser](https://forum.inductiveautomation.com/u/jvisser)\
**Post date:** [September 1, 2020, 8:24pm UTC](https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770/3 "2020-09-01T20:24:54Z")

</div>

I have not gotten an answer

---

<div class="post-metadata">

**Author:** ![rrivera](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@rrivera](https://forum.inductiveautomation.com/u/rrivera)\
**Post date:** [September 2, 2020, 1:51am UTC](https://forum.inductiveautomation.com/t/view-load-event-in-perspective/36770/4 "2020-09-02T01:51:01Z")

</div>

I reached out to tech support today. I’m doing something similar but setting the data of a different component. They confirmed that at least in v8.11 the onStartup event only works the first time you load the view on the browser’s tab. They suggested I do a Pop-Up, which works but its not really what I want to do.

I did a bit of an ugly workaround. Since this is intended to be a “details” view I’m not calling from the menu but from another view. What I did was, I passed a boolean parameter “true” when I navigate to the details view. Then on the details view I have a binding with a Script Transform on Parameter = True. The final part of the script toggles the parameter back to false. I did a test and I think it will work. But I’m still looking for cleaner options.
