NetTalk Central

Author Topic: Calculate a Total field  (Read 3393 times)

pbouma

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • Email
Calculate a Total field
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Calculate a Total field
« Reply #1 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