0
 Followers
1
 Like

A post preparation action - where you can access elements that have already been drawn and have local variables to keep things tidy

Frontend
On our radar
A post preparation action - where you can access elements that have already been drawn and have local variables to keep things tidy
Created on 3 Jul 2016
Comments (5)
4 Jul 2016
Hmmm.. it already exists. It's called "Screen action" !?
4 Jul 2016
I think maybe he wants to call this after the intial rendering, so this way he doesn't need to worry about the binding wiping some things out?

J.Ja
5 Jul 2016
I was trying to call a screen action from my preparation but couldn't. I'd prefer to have my code in one place rather than duplicating it. I have a graph on the screen that requires a complex calculation and I'd like it shown with default information when the screen is first rendered. At the moment I have the calculation in a screen action and also the preparation.  I'd be happy to hear how other users would approach this
5 Jul 2016
I'd put the calculations in a separate action under "logic", call it from Prep and the Screen Action, then do the assign and refreshes as needed in prep and screen action.

J.Ja
6 Jul 2016
yes, thats good. It's business logic after all 
views
31
Followers
0