NetTalk Central

Author Topic: netwebform calc fields on update  (Read 2790 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • Email
netwebform calc fields on update
« on: November 13, 2018, 07:17:05 AM »
here is a simple example to try show what i am trying to do.
I think i have the wrong imbed point.

I have a netwebform which inputs for example an amount and percentage and saves it to a table.
when the amount or percent is changed on the form i recalc a computed field and display that on the form , it is not saved in the database .
for inserts and / or updates when i alter the field on the form the recalc is done on send newvalue to server and the correct field is refreshed.
 The problem comes in when i go back to the browse , select another record and open the from.
old values of the calc field from the previous form are displayed.
I need to recalc these fields and save there session values before the user sees the screen.
I have put code in the preupdate procedure but it doesnt seem to work.
any help would be appreciated.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: netwebform calc fields on update
« Reply #1 on: November 13, 2018, 11:38:21 PM »
no attachment Mike.

cheers
Bruce

MikeR

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • Email
Re: netwebform calc fields on update
« Reply #2 on: November 14, 2018, 02:23:17 AM »
There is no attachment.
I just need to know what embed point to use to prime fields session values on update that are calculated so the values are initialized correctly

MikeR

  • Sr. Member
  • ****
  • Posts: 257
    • View Profile
    • Email
Re: netwebform calc fields on update
« Reply #3 on: November 14, 2018, 08:32:15 AM »
Case Closed Sorted