NetTalk Central

Author Topic: Double Count on a Browse Total  (Read 2938 times)

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Double Count on a Browse Total
« on: March 19, 2013, 10:13:52 AM »
Hello,

i am converting from nt4 to nt7.06
i have a browse with totals (sums and count)
The sums are correct but the Count appears doubled,
I see the count is from loc:rowcount which is incremented whenever an Addpacket is fired for a Net:Rowdata packet.

I can see the addpacket is fired twice for each Net:Rowdata.
(the contents of the second packet is minimal)

why?
from debugview the second packet is minimal but causes  the math to be wrong
eg:  <tr class="nt-browse-table-row" data-nt-id="aOsmRqVk" onclick=""></tr>

other simple browses apppear to count properly, the only complexity i see with this form is some conditional columns...
poul

nt7.06

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Double Count on a Browse Total
« Reply #1 on: March 25, 2013, 06:13:36 AM »
Hi Poul,

I'm unable to duplicate, so I'll need you to make an example for me.
hmm - do any of your browse columns have the "last on line" item ticked on?

cheers
Bruce


Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Double Count on a Browse Total
« Reply #2 on: March 25, 2013, 10:50:46 AM »
Quote
I'm unable to duplicate
neither am I, its on one of my main  browses.
My work-around is a stupid hack
divide the loc:rownumber by 2 in the totals Routine

it seems to work everytime! i guess that will work until it starts working properly,
in which case i will remove it.

the only hand code is overriding button names...
some conditional:  columns, images, colours, and buttons,  totals and custom totals, all on one line, but all set thru the template
i had looked for conditional columns with the 'last on line' ticked, but saw nothing out of sorts.

but it has come from NT 4.X on c6, to nt7 on c8, and there are still the some odd things with upgraded procedures i still wrestle with
getting rid of adiv, setting the form type, seem important. I have one procedure that appears linked to a browse for no reason in the application tree
(in source i see a reference to it in the Popups routine, i have no idea why)

And some of my code 'fixes' that only applied to 4.x,  i had to remove/tweak, i had about 100  modules in this to convert and this one browse was the only giving me a hard time.  i may try and simply redo it and see if i can eventually find what breaks it. 

But i wouldn't worry about it for now. unless you see it else where.
thanks
poul