NetTalk Central

Author Topic: Time Field Session Values  (Read 1407 times)

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Time Field Session Values
« 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]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11186
    • View Profile
Re: Time Field Session Values
« Reply #1 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

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Time Field Session Values
« Reply #2 on: June 06, 2012, 02:38:59 PM »
Great thank you!

Regards,
Trent