on 02-01-2016 12:01 PM
Hi folks
I copied one javascript code from a sample application, it was working very well when data were retrieved from json file, now the data have been retrieved from oData and the group function does not work anymore. It does not have a java script error, the list is sort is changed, but the result is wrong.
The list before groupping:
The list after the groupping:
how you can see, the lines with "1800" were not grouped, but the sorter were changed
file masterview.xml:
master.controller.xml:
Grouper.js:
before you call sort:
list.getBindingInfo("items").groupHeaderFactory = this.getGroupHeader
where getGroupHeader is method in controller
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
does it stop in grouper? did you try ti implement groupHeaderFactory ? like
groupHeaderFactory: '.getGroupHeader'
getGroupHeader: function (oGroup) {
return new sap.m.GroupHeaderListItem( {
title: oGroup.key,
upperCase: false
} );
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michel,
Please check this once if it helps
http://help.sap.com/saphelp_hanaplatform/helpdata/en/4c/98cf1b07754d22bed8b6fba68f2031/content.htm
Regards,
Sanjoy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sanjoy, thank you, but it is not a table, it is a List, this is the source code:
<List items="{/ObrasListaSet}" | ||||||
id="list" | ||||||
mode="{device>/listMode}" | ||||||
select="handleListSelect" | ||||||
> | ||||||
<ObjectListItem id="ObjectListItem" | ||||||
icon="/sap/bc/ui5_ui5/sap/ZAPUR_RESULTS/image/{Obra}.ico" | ||||||
type="{device>/listItemType}" | ||||||
press="handleListItemPress" | ||||||
title="{Name1}"> | ||||||
<attributes> | ||||||
<ObjectAttribute text="{ | ||||||
path:'Data', | ||||||
formatter:'rogga.ui.zresults_obra.util.Formatter.date' | ||||||
}" /> | ||||||
</attributes> | ||||||
</ObjectListItem> | ||||||
</List> |
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.