Run script / code on page load

Hi Community,

Does anyone know how to run a script when a page (app) loads for the first time? I have a date field used for filtering, that needs to be set to today's date when the page loads. After that, it's under the user's control. Looks like a modal dialog could do it in the 'Open' event, but I don't see any events for the main app page.


Within the Resource is the Advanced tab...

This can be done for just about every Resource...

Ah! I hadn't noticed that one could create arbitrary Javascript code as a "query"; not where I expected to find it!

Thanks :slight_smile: