cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed with FacetFilter

0 Kudos

Hi,

I am currently trying to get familiar with the ux3 Facet Filter control but I am totally stuck.

I tried to take the source from FacetFilter - SAPUI5 Demo Kit

and to adapt it to the Northwind oData Service but i don't get it to work.

Attached is the source code as it seems to be too large to enter here.

If I select a Customer for the first time, the other Facet Lists seem to get updated as desired. The other Facet Lists don't work at all.

It seems like the Facet Lists are always bound twice, as I see in Google Chrome one cancelled and one completed request from each model.

And in the sample code, a complex loop is used to check the json array for matching results. How do I do that with an oData Service as datasource?

Any help is appreciated. Maybe someone has a working example of a Facet Filter with the Northwind oData Service?

Thanks,

Oliver

Accepted Solutions (0)

Answers (1)

Answers (1)

kedarT
Active Contributor
0 Kudos

Hi Oliver,

There is no code in the ZIP file.

0 Kudos

Hi,

Unfortunately the initial html file has to be loaded in Chrome with the web-security disabled due to the CORS problem.

Regards,

Oliver

Edit: When using a proxy to load the data, I get another error in Chrome

caused by this function:


getStatistics : function() {

            return this.statistics || window.localStorage.getItem("sap-ui-statistics") == "X";

        },

When using Firefox, the initial data loads, but when a filter is applied, the proxy doesn't seem to be used anymore.

I attached the file with the proxy version.

This is very confusing...

Regards,

Oliver