NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: pbouma on November 09, 2016, 10:53:33 AM

Title: Calculate a Total field
Post by: pbouma on November 09, 2016, 10:53:33 AM
I have a Webform Activities - ACT:ID - ACT:MorningHours - ACT:AfternoonHours - ACT:TotalHours
  |
  Webform: same fields - the field ACT:TotalHours is a 'Display' field. The fiels 'Text' has:
p_web.GSV('ACT:MorningHours') + p_web.GSV('ACT:AfternoonHours') and that works, It shows the calculation.

the problem:
The value (from the calculation) is not saved in the record, therefore the field ACT:TotalHours in the browse = 0
How/where can save it to the record,
Bruce wrote: see Priming tab, "On Save" option...but that does not work. (btw I dod not see 'on save' , but 'Assign on save' which is probably what he meant.

Thanks, Piet
Title: Re: Calculate a Total field
Post by: Bruce on November 13, 2016, 10:15:41 PM
Hi Piet,

>> btw I dod not see 'on save' , but 'Assign on save' which is probably what he meant.

yes.

What did you put in there that did not work?

cheers
Bruce