NetTalk Central

Author Topic: Capture Total field from WebBrowse  (Read 5246 times)

zolinovak

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
Capture Total field from WebBrowse
« 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

Bruce

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