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

How to pass filters to oData WorkflowTask Entity Set

$
0
0

Hi

I am extending the Master List of an Fiori App. The oData service has been extended and created in customer namespace.

Now I have added filter conditions on the Master List Footer page, each filter option will filter the Workflow Task entity Set based on a condition.

 

How do I pass this filter to the model?

 

p.s. - I am not looking to filter the list, rather filter the odata model which will return different set of list

 

e.g. by default the model will fetch Task Collection

 

/sap/opu/odata/sap/<serviceName>;mo/WorkflowTaskCollection

 

on Filter condition 1 - it should do a filter. This will return a set of items which are different than the default items

/sap/opu/odata/sap/<serviceName>;mo/WorkflowTaskCollection?$filter=key eq '1'

 

for filter 2 - /sap/opu/odata/sap/<serviceName>;mo/WorkflowTaskCollection?$filter=key eq '2'

 

filter 3 - /sap/opu/odata/sap/<serviceName>;mo/WorkflowTaskCollection?$filter=key eq '3'  and so on

 

How do I implement this in the controller?

 

The master list is based on the ScfldMasterController, so I was wondering if there are any way to do it thru this interface

 

Thank you

Aakash


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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