on 12-05-2016 10:08 AM
I'm facing weird behavior of sap.ui.comp.filterbar.FilterBar. When I'm trying to do "filterGroupItems" aggregation refresh - FilterBar trying to create aggregations instead of refreshing and of course fails due to duplicate IDs error.
See Code Snippet here - http://jsbin.com/vamemag/edit?html,output
1) Open dev console
2) Click on button "Filters"
3) Click on "Restore" button, it will try to refresh filterGroupItems.
Hm, this looks like a bug to me. I have tried a few things, including switching to v2.ODataModel, setting templateShareable=false,... But all with the same result.
Furthermore, I have found out a few other interesting things:
oFb.bindAggregation("filterGroupItems", {
path : "/Employees",
template: oFb.getBindingInfo("filterGroupItems").template,
templateShareable : false
});
Here is my jsbin code (based on yours). Just press the "live preview" arrow in jsbin and enter the code lines above into your console...
My assumption without checking the code is that the sap.ui.comp.filterbar.FilterBar is not completely supporting DataBinding which is very sad. I think it's absolutely worth opening a ticket for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.