Returns the sum of the specified numerical attribute/value combination among the child configurations.
double ChildrenAttributeSum(string name; [string productTitle])
name |
The name of an attribute. |
productTitle |
Optional filter to only include configurations of the specified product. |
Example
ChildrenAttributeSum("Weight")
Returns the child configurations' sum of the double or integer attribute "Weight".
Remarks
It is recommended to place attributes that read the value of other configurations’ attributes at the bottom of the attribute tree to reduce the risk of circular dependencies. Another solution is to replace either the referenced or referencing attribute with a parameter that is set using a template expression rule.