NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on April 12, 2014, 01:52:58 AM

Title: Memory form - Update browse - Update total field
Post by: JohanR 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


Title: Re: Memory form - Update browse - Update total field
Post by: Alberto 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
Title: Re: Memory form - Update browse - Update total field
Post by: JohanR 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
Title: Re: Memory form - Update browse - Update total field
Post by: Alberto 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]
Title: Re: Memory form - Update browse - Update total field
Post by: Bruce 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