use parent's fields in column equation
As discussed at http://www.sqlnotes.net/drupal5/index.php?q=node/2070#comment-9119, you can do something like the following to use more than one field of your children in your column equation.
Parents = mySum(IncludeField, children)
Function mySum(IncludeIt, x) ' Calculates the sum of the array x if IncludeIt is true
dim d, i
d=ubound(x)
for i=0 to d
if IncludeIt(i)=true then mySum = mySum+NZ(x(i))
next
end Function
- Read more about use parent's fields in column equation
- 5 comments
- Log in or register to post comments