NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: broche on December 12, 2014, 12:39:55 PM

Title: Refresh a local variable on a form
Post by: broche 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
Title: Re: Refresh a local variable on a form
Post by: MyBrainIsFull 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
Title: Re: Refresh a local variable on a form
Post by: Bruce 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