NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: zolinovak on July 15, 2007, 06:53:16 PM

Title: Capture Total field from WebBrowse
Post by: zolinovak on July 15, 2007, 06:53:16 PM
It's is a way to capture the total field from WebBrowse, and used in other procedure?



Thanks

Zoltan Novak
Title: Re: Capture Total field from WebBrowse
Post by: Bruce on July 15, 2007, 11:01:40 PM
Hi Zoltan,

In the browse procedure the Totals are calculated, and temporarily stored in a local variable called Loc:Total[columnnumber]

A good embed point to use, if you wanted to copy them into Session Variables is "After Browse Before Buttons".

Once they are in a session variable you can use them in the normal way.

Tip: Remember totals only apply to the records you can _see_. Unlike a Clarion browse that will total the whole dataset. Calculating totals of the whole dataset is quite an expensive operation, and it would need to be re-done over and over with each browse refresh.

Cheers
Bruce