Sort sap.m.table again
i got at question concerning the sap m.table.
I have an application with table with with colummns.
A, B, C, D ,E.
The table is sorted by A.
I have an f4 value help wich allows the user to change the value of column A.
The colummn contains
After changing HS02 to HS09
The table is not sorted by column a anymore.
Is there a way to refresh the sorting /actualize the sorting of the table after the change?
If so how?
Sai Vellanki replied
Wherever you have placed the value change logic (make sure your model is also updated with the change value), next to that try something like this -
var oSorter = new sap.ui.model.Sorter("A"); //A is your column name
var oTable = this.getView().byId("oTable"); //Get Hold of table control, if it is not MVC use sap.ui.getCore().byId("oTable")
var oBinding = oTable.getBinding("items");