Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pass the values of FacetFilter to the URL and thus to OData??

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.

Tags:
Not what you were looking for? View more on this topic or Ask a question