Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2695

Re: OData filtering a filtered table

$
0
0

Hi,

OK, I found one possibilty. I defined the following controller-function:

 

filterSearchField: function(oEvent) {

     var sQuery = oEvent.getParameter("query");

     var oDataFilters = [];

     var oTblData = $view.byId("idTableD");

     var oBindingData = oTblData.getBinding("items");

 

     oDataFilters.push(new Filter('ApplicationPa', FilterOperator.EQ, 'A'));

     oDataFilters.push(new Filter('CustomerPa', FilterOperator.EQ, sCustomer));

     oDataFilters.push(new Filter('VersionPa', FilterOperator.EQ, sVersion));

     oDataFilters.push(new Filter('HieridPa', FilterOperator.EQ, sHierid));

     oDataFilters.push(new Filter('FiscalYearPa', FilterOperator.EQ, sFiscalYear));

 

     if (sQuery) {

          oDataFilters.push(new Filter('Unitname', FilterOperator.EQ, sQuery));

     }

 

     oBindingData.filter(oDataFilters);

}

 

This code above is function well, but if I change the FilterOperator of snipped

     oDataFilters.push(new Filter('Unitname', FilterOperator.EQ, sQuery));

from EQ to Contains, than there occurs always a RFC-Error: Failure by parsing the dynamic WHERE-Clause.

 

Is there somebody with any idea ?

 

Thanks & best regards

Achim


Viewing all articles
Browse latest Browse all 2695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>