I'm trying to setup a script for use in a Model-driven App which will run when Views are loaded within that App. For example, say the user visits Accounts and sees a View listing All Active Accounts.
I am aware that it's possible to load PCF controls into Views, however before I start doing that I'm looking for a more generic way of having a script load on every page load within the App. The script will be able to determine what it should do depending on what kind of page it is running on. This is a much better solution for me than customizing each and every View within the App with a PCF control. However, I haven't been able to find anything on running scripts at the App level, ie. something that loads and runs on every page within the App.
Is there any way of doing this, or will I have to resort to inserting a PCF control on every applicable View?
TIA, Ben