on 07-28-2015 5:52 AM
Hi ,
Need help in passing values in Facetfilter placed in view.xml .
How to bind the values selected in Filter to the URL.
<FacetFilter
id="facetfilter1"
type="Simple"
showPersonalization="true"
showReset="true"
reset="handleFacetFilterReset"
lists="/{EntitySet}">
<lists>
<FacetFilterList
title="CompanyCode"
key="Compcode"
multiselect="true"
listClose="handleListClose"
items="/{EntitySet}" >
<items>
<FacetFilterItem
text="xyzcompany"
key="0021" />
<FacetFilterItem
text="abccompany"
key="0098" />
</items>
</FacetFilterList>
<FacetFilterList
title="Dbcrind"
key="Dbcrind"
multiselect="true"
listClose="handleListClose"
items="/{EntitySet}" >
<items>
<FacetFilterItem
text="Debit"
key="S" />
<FacetFilterItem
text="Credit"
key="H" />
</items>
</FacetFilterList>
</lists>
</FacetFilter>
First of all i get this error, as i used the code in FacetFilter sample:
[localIndex.html] Element sap.ui.core.mvc.XMLView#__xmlview2: aggregations with cardinality 0..n only allow binding paths as attribute value (wrong value: lists='/{EntitySet}') ==> THe variable there is the entity set name of Odata Model.
Please help me with code and where to plug in.
And please let me kow what should i fill in items, lists = ? in the facefilter tags.
Hi Santhosh Gowda and Chakri B ..
I'm also facing the same issue with same error how to bind the data with view please give some code to go ahead. I'm trying this as 2 days thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"/{EntitySet}" is should be "{/EntitySet}".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go through this link- Working with Facet Filters - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library
Hello Chakri,
I found Your threat because I am looking for the same issue. Did you solve this problem.
In the following Link I found the following statement
http://help.sap.com Data Binding for Facet Filters
Applications using OData do not bind the FacetFilterItem.selected property since this is not available from the backend service. Fortunately, selections are maintained internally on the client by the FacetFilterList until the list is destroyed.
If I understand it right this means that selecting at the backend does not work for OData. But in this case Facet Filters are useless for OData, because Facet Filters are made for a huge amount of data and this can't be selected at the client.
Everybody is invited to discuss if I understand this right.
Best regards
Renald
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.