Hi Bruce
I added the 'do CalculateTimes' at the 'PreUpdate/3 End' embed point - specifically:
! End of "On Update : Form begins"
p_web.SetSessionValue('Playpen_CurrentAction',Net:ChangeRecord)
p_web.SetSessionValue('Playpen:Primed',0)
! Start of "Pre Update After Primes"
! [Priority 5000]
do calculatetimes
! End of "Pre Update After Primes"
However, the 'Times' were calculated incorrectly and the reason was that the session variables for the form fields were not set.
On my form I have a 'Calculate' button. When the user presses this button the 'CalculateTimes' routine is executed and many fields on the Form are reset to the new values. the user will typically do this many times noting changes in acceleration, speed and distance. Because the form fields can be changed with every request my routine first of all gets all of the current form field values e.g sce:PowerkW = p_web.gsv('sce:PowerkW').
This works fine if the action is 'Insert' but fails on 'Change' because it looks as if the session variables have not been set. For example the value of p-web.gsv('sce;PowerkW') is 0 but the value of sce;PowerkW is 220.
So, have I done something wrong at the embed point or is there something else I am missing.
Thanks
Keith