I have a formatter that calculates totals and it then displays the updated value correctly on my table but it is not going into the model, the value is only on the actual table, I've tried nearly everything I can think of to get the new value on the table calculated by the formatter onto the model, as I then use the new value for another calculation.
oTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Total"}),
template: new sap.ui.commons.TextField("txtField",{
// editable: false,
value: {
parts: [{ path: "a"}, {path: "b"}, {path: "c"}, {path: "d"}, {path: "e"}, {path: "f"}, {path: "g"}],
formatter: formatTotal
},
}),
width: "60px"
}));
The formatTotal method in my controller just adds a+b+c+d+e+f+g and return the total.