NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: trent on June 03, 2012, 03:00:54 PM

Title: Time Field Session Values
Post by: trent on June 03, 2012, 03:00:54 PM
Hi Bruce,

There seems to be an issue with Time fields: if you set a Session Value from a Local Variable (Time) the value gets set but then lost when the save button is clicked. See attached app – Go to the memory form, add some times into the fields (with debug view open) and click the save button. You will see the debug output from the ‘Validate All’ embed shows the Session Values as 0.

Or maybe I am doing something wrong?

Thanks,
Trent

[attachment deleted by admin]
Title: Re: Time Field Session Values
Post by: Bruce on June 05, 2012, 03:55:44 AM
a) there's no need to explicitly set the session value in the validate::fieldname routines. that is done for you in the validatevalue::fieldname routine. (and then only if the value is valid.)

b) your trace statement, at the top of the ValidateRecord routine should be moved to the end of that routine - ie after the values have been validated.

cheers
Bruce
Title: Re: Time Field Session Values
Post by: trent on June 06, 2012, 02:38:59 PM
Great thank you!

Regards,
Trent