‘sortProperty’ attribute is not sorting sap.m.Table

'sortProperty' attribute is not sorting sap.m.Table  #angularjs #reactjs

  • The explored example you have mentioned uses the sap.ui.table library and it appears that you are using the Table control from the sap.m library.
  • Table control does not have the same built-in sorting functionality as sap.ui.table.
  • I’m trying to add a sorting feature on each column of a table.
  • Stack Overflow works best with JavaScript enabled
  • Table control if it is suitable for your application

I’m trying to add a sorting feature on each column of a table. I have inspected the example provided by SAPUI5 Explored here : https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.ui.table.sample.Sorting/preview

@ng_real_ninja: ‘sortProperty’ attribute is not sorting sap.m.Table #angularjs #reactjs

Specifically I added a ‘sortProperty’ attribute to the column element in my xml view (see ‘Qty’ below), but I don’t see any sorting functionality nor any ‘sorting arrows’ like in the example provided. Could someone examine what I’m missing here?

The explored example you have mentioned uses the sap.ui.table library and it appears that you are using the Table control from the sap.m library.

The sap.m.Table control does not have the same built-in sorting functionality as sap.ui.table.Table. You can implement sorting by following this example, alternatively you could consider switching to use the sap.ui.table.Table control if it is suitable for your application

‘sortProperty’ attribute is not sorting sap.m.Table