Popup onStartup script doesn't appear to run

I have an onStartup script on the root of a popup's view. It is supposed to populate some text fields in the popup. It doesn't seem to run. I'm not getting anything in the logger / logger wrapper.

Am I missing anything here? Should the event fire on every occurance of the popup or only the first time?

When you say your script is on the root of the view, do you mean it is an event on the root container? Have you tried put the script in an onStartup event on the view itself? It should work on the root container either way, but perhaps worth trying.

I just tried out the onStartup Event of a root node and I found the expected behavior to be in place, printing content in the script as well as setting the values of props of Child components.

Thanks guys. The problem turned out to be an error in a runPrepUpdate query that was grabbing the data to populate the view. There was an error in the syntax and the script silently died every time. I've got it working.

2 Likes