Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi,
I want to have a total values of one column in the grid widget. That total values should display in the text box widget. If anybody knows mean let me know. It will be very useful.
Hi,
I don't know if you found a solution to you question, but I will tell you how I would do.
I would create a service where I get all the values I want to sum up (eg. use same service that is getting values in the Grid). I assume the values are in an infotable, I would use snippet for Aggregate to sum its elements:
var params = {
t: myInfoTable/* INFOTABLE */,
columns: "myColumn" /* STRING */,
aggregates: "SUM" /* STRING */
};
var result = Resources["InfoTableFunctions"].Aggregate(params);
result.SUM_myColumn;
The result should be bind with the text box widget value.
Hope it helps,
Raluca Edu