Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Create complex query for filtering table

$
0
0

Hello,

I have to run a complex query to filter a table that is connected to HANA DB via ODATA service. It seems that the generated URL query is too long. Is there a possibility to increase the maximum URL length or change the type of query HANA uses to set the filter?

This is the current coding for filtering the table. There is a loop around the filter that runs a few thousand times.

 

var aSensorFilterInner = new sap.ui.model.Filter(

                           [

                             new sap.ui.model.Filter('ID_JOB', sap.ui.model.FilterOperator.EQ, oContextObjectRun.ID_JOB),

                             new sap.ui.model.Filter('ID_FILE', sap.ui.model.FilterOperator.EQ, oContextObjectRun.ID_FILE),

                             new sap.ui.model.Filter('ID_FOLDER', sap.ui.model.FilterOperator.EQ, oContextObjectRun.ID_FOLDER)

                           ],

                           true);

            

             aSensorFilters.push(aSensorFilterInner);

        };

       

 

        // set filter

      GlobalElements.LeftTable.getBinding('rows').filter(aSensorFilters);

 

Thanks in advance for your help.

 

Kind regards,

Stefan


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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