D
Doug
I've added a data field to a pivot table:
v.DataAxis.InsertFieldSet(v.FieldSets("Duration"));
I then create a total field:
var t = v.AddTotal("Duration", v.FieldSets("Duration").Fields(0),
c.plFunctionSum);
v.DataAxis.InsertTotal(t);
This causes a javascript error:
"function cannot be applied to the given field"
If I change c.plFunctionSum to c.plFunctionCount, it's all fine.
The field in question is decimal with no empty values. I've also tried
plFunctionSum with an int field, same result.
I'd be very grateful for some help. Thanks.
PS Microsoft - the documentation for OWC is pathetic. The samples for
OWC are pathetic. Get some C# samples written.
v.DataAxis.InsertFieldSet(v.FieldSets("Duration"));
I then create a total field:
var t = v.AddTotal("Duration", v.FieldSets("Duration").Fields(0),
c.plFunctionSum);
v.DataAxis.InsertTotal(t);
This causes a javascript error:
"function cannot be applied to the given field"
If I change c.plFunctionSum to c.plFunctionCount, it's all fine.
The field in question is decimal with no empty values. I've also tried
plFunctionSum with an int field, same result.
I'd be very grateful for some help. Thanks.
PS Microsoft - the documentation for OWC is pathetic. The samples for
OWC are pathetic. Get some C# samples written.