NetTalk Central

Author Topic: Memory form - Update browse - Update total field  (Read 3287 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Memory form - Update browse - Update total field
« on: April 12, 2014, 01:52:58 AM »

Hi,

What is the correct method in the following scenario.

I have a memory form with a total field being displayed, loc:total

On the form I have a browse on an item file, items are updated, qty amounts etc...
The browse updates as the fields on the item file is changed.

If anything changes in the browse,
I need to update the total field as well as execute some code to update some other fields on the form.


thanks

Johan



Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Memory form - Update browse - Update total field
« Reply #1 on: April 12, 2014, 11:34:26 AM »
Johan,
I would use the browse itself to calc the total and in the Total embed add the code you need to fill the others form fields.
Regards
-----------
Regards
Alberto

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Memory form - Update browse - Update total field
« Reply #2 on: April 13, 2014, 12:04:38 AM »
Hi,

thanks for that, that is the direction I am taking,
but not sure how to trigger the field refresh in the form from the browse.
The total is in a session var, and this is displayed on the form.
I have other fields on the form that also need to e re-calculated...
eg. shipping costs as the qty changes


Johan

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Memory form - Update browse - Update total field
« Reply #3 on: April 13, 2014, 04:10:44 AM »
Try making the form a "child" of the browse.
Or... look at the source code in the Total embed and mimic the Total Row adding more rows with your calcs.
See attached image
Cheers

[attachment deleted by admin]
« Last Edit: April 13, 2014, 04:15:01 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Memory form - Update browse - Update total field
« Reply #4 on: April 13, 2014, 10:57:16 PM »
Hi Johan,

which build of NetTalk are you using - from late-version NT7 builds, as far as I know it's all automatic.

>> If anything changes in the browse, I need to update the total field as well

since these are both form fields, it's treated just like any other form field. You add the total field to the "reset list" of the browse.

cheers
Bruce