New Model Action Initiating Event: Pageload

  • 2
  • Idea
  • Updated 3 years ago
Adding 'pageload' as an initiating event for model actions would eliminate a significant portion of the inline javascript that I have to write. 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 2
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
+1
Photo of JD Bell

JD Bell, Senior Product Engineer

  • 2,996 Points 2k badge 2x thumb
It's not always appropriate, but you can set the model to be processed client side, which will delay loading of data and metadata until the page has finished loading. This will cause a "requery" event as soon as the page has finished loading, which gives you the ability to set an action on the first load of data.

This is not ideal, but it can work in limited situations until something more comprehensive is available.
(Edited)
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Thanks. I didn't understand what the client side processing really did, but it's beginning to make sense.