Submitted by reesd on 2011/11/14 21:56
0.9.25W3 fixed two key hierarchy equations issues as described in [FIXED] Bugs with conditional column equations (important...), but it didn't fix this third issue.
 
I originally thought it was boolean related, but it seems to be a general problem of hierarchy equation not being triggered when a child's value is deleted.
 
To reproduce:
  • open sample db
  • go to TranscriptStats tab
  • select and delete a CourseGPA value for one of the items
  • the parent does not recompute (it should)
  • select the parent field and do shift-F9, the correct value is shown
It's worth noting that for booleans unchecking is the same as deleting (I think). So this is much more visible with booleans.
 
Thanks,
dave

Comments

Yes, this is an old bug.
 
1061 Problem with column/row equation when SLIs values are simply deleted (directly or through some other equation)  Bug
 
--------------------------------------------------------------------------------
Windows XP Home Edition, Service pack 3
Dell Vostro 1500, Ram:3gb, CPU: Intel Core2Duo T7500 2.2ghz

Armando

2011/11/23 17:14

In reply to by Pierre_Admin

Great !
--------------------------------------------------------------------------------
Windows XP Home Edition, Service pack 3
Dell Vostro 1500, Ram:3gb, CPU: Intel Core2Duo T7500 2.2ghz

reesd

2011/12/03 16:45

In reply to by Pierre_Admin

[quote=Pierre_Admin]
Hi,
 
This is fixed in v0.9.25W4 !
 
[/quote]
 
Cool, when is 0.9.25W4 coming out?
 
d

reesd

2012/05/22 16:29

In reply to by Pierre_Admin

[quote=Pierre_Admin]
Hi,
 
This is fixed in v0.9.25W4 !
 
[/quote]
 
This seems to have only been partially fixed (using 0.9.25W10). The parent is updated when one child value is deleted, but it is not updated when the last child value is deleted.
 
 To reproduce:
  • open sample db
  • go to TranscriptStats tab
  • Delete CourseGPA for "Course 1" and "Course 2".
  • Semester 1's CourseGPA still shows "9.9", it should show "0"
  • Select the Semester 1's CourseGPA field and do shift-F9, the correct value is shown

Armando

2012/06/05 16:03

In reply to by reesd

Yes, I think Pierre is aware of that. I have the same problem.
There's also another bug IIRC, but I don't have the time to look for it now... If I do, later, I'll post it here.
 
--------------------------------------------------------------------------------
Windows XP Home Edition, Service pack 3
Dell Vostro 1500, Ram:3gb, CPU: Intel Core2Duo T7500 2.2ghz

reesd

2012/06/17 21:42

In reply to by Armando

[quote=Armando]
Yes, I think Pierre is aware of that. I have the same problem.
[/quote]
 
Ok, I've added it to Mantis as http://mantis.sqlnotes.net/view.php?id=1141
 
[quote=Armando]
There's also another bug IIRC, but I don't have the time to look for it now... If I do, later, I'll post it here.
[/quote]
 
Please do report or at least hint at it, these can be very tricky to discover  and it would be much nicer to know ahead of time :).

Armando

2012/07/06 18:01

In reply to by reesd

Here are the 3 problems I'm  aware of in relation to column equations (conditional or not -- but I mostly tested them with conditional equations):

     ----> impossible to manually recalc a column if there's a simultaneous column ROW equation : total always = row equation result. (Shouldn't be. Column should always have priority over row -- well in 99% of cases...)

     -----> when a subitem is removed from the parent (deleted or simply removed), calculation isn't re-performed (so, it stays unchanged)

     -----> + the one you mentioned (David) : "The parent is updated when one child value is deleted, but it is not updated when the last child value is deleted." (by "last child value", David means the last remaining one).

 

 

(Edited 2012 07 07 : few language mistakes)

--------------------------------------------------------------------------------

Windows XP Home Edition, Service pack 3

Dell Vostro 1500, Ram:3gb, CPU: Intel Core2Duo T7500 2.2ghz