cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Facet Filter Selection setSelectedKeys

Former Member
0 Likes
482

Hi Folks,

i can use setSelectedKeys to apply the selections to the list.

https://help.sap.com/doc/saphelp_uiaddon10/1.17/en-US/ef/860fc989764439957c6446ecebd7ec/content.htm?...

The first item is All, which is the right key to select All?

All the best

Bernd

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
SAP Champion
SAP Champion
0 Likes

in this example, https://sapui5.hana.ondemand.com/#/sample/sap.m.sample.FacetFilterSimple/code/FacetFilter.controller... you can see the _filterModel function and see how the logic, gets the list items, iterates them with the map function and returns a new filter (eventually an array of filters if more than 1 is selected) and then it applies it to the list, so in your select all selection, then the logic has to iterate through the entire items of the list.

for more information about the control itself, you can find it here: https://sapui5.hana.ondemand.com/#/api/sap.m.FacetFilter/overview

hope that is what you needed.