NetTalk Central

Author Topic: Refresh a local variable on a form  (Read 3198 times)

broche

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Email
Refresh a local variable on a form
« on: December 12, 2014, 12:39:55 PM »
CL 9.0
NT 8.32

Two fields on a form
Date pf Birth
Age

In the Validate Embed for Date of Birth I have the expression Loc:Age = AGE(Pat:BirthDate,TODAY())
I know it works
I have the Loc:Age as a display field on the form
I have Loc:Age in the refresh section for the DOB field

It never displays

Brian
Brian

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Refresh a local variable on a form
« Reply #1 on: December 13, 2014, 12:25:20 AM »
post a code snippet in app and dct and I will take a look for you

K

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a local variable on a form
« Reply #2 on: December 13, 2014, 01:20:27 AM »
you need to set the SessionValue not the local variable.
eg

Loc:Age = AGE(Pat:BirthDate,TODAY())
p_web.SSV('loc:age',loc:age)


Cheers
Bruce