Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)
Answered

Using group header list item in bounded environment

Hi,

I am looking for a solution on how to use the group header list item to group data within a list.

Basically i want to show all purchase orders grouped by plant as a list.


I have seen the functionality in sapui5, but i can't seem to get it to work with Neptune.


Thank you fore replying.


Kund Regards

Soeren Baek


Best Answer

Hi,

Imagine, I just found the solution myself 5 minutes after writing the topic.


The solution is:

var oSorter = new sap.ui.model.Sorter("Fieldname", false, true);

var binding = oList.getBinding("items");

binding.sort(oSorter);



1 Comment

Answer

Hi,

Imagine, I just found the solution myself 5 minutes after writing the topic.


The solution is:

var oSorter = new sap.ui.model.Sorter("Fieldname", false, true);

var binding = oList.getBinding("items");

binding.sort(oSorter);




1 person likes this
Login or Signup to post a comment