Page 1 of 1

OData and dynamic filters

Posted: Fri Oct 20, 2017 7:12 am
by s.wieczorek
Hi,
Can i add dynamic filters to OData requests just like for sql commands (using @<VariableName>)? If not, how to make component send requests with /$filter=fieldName eq '<var from stimulsoft>'

Re: OData and dynamic filters

Posted: Sat Oct 21, 2017 9:36 am
by Alex K.
Hello,

You can add necessary filtering for the DataBand component.

Thank you.

Re: OData and dynamic filters

Posted: Mon Oct 23, 2017 6:03 am
by s.wieczorek
But will this send filters to OData server or will it filter data on the clients side?

Re: OData and dynamic filters

Posted: Tue Oct 24, 2017 12:52 am
by Edward
Hi S.Wieczorek,

It will filter the data on the client side only. The report engine translates the data into an internal format and then filters that data.

Thank you,
Edward

Re: OData and dynamic filters

Posted: Tue Oct 24, 2017 7:34 am
by s.wieczorek
So there is no possibility to dynamically add variables to filters for OData requests.... Will it be added in the future? It would be good to make Datasource requests the server with addition of filters. Now it will pull all data from DB(which can cause performance problems) or hardcoded set only.

Re: OData and dynamic filters

Posted: Tue Oct 24, 2017 2:10 pm
by Alex K.
Hello,

Unfortunately, at the current moment, we do not have plans to add this feature for the OData. Sorry.

Thank you.

Re: OData and dynamic filters

Posted: Fri Nov 06, 2020 3:08 pm
by iandreev
Hi,

I know this is an old question but right now I'm looking for the same thing. I want to use filters (variables that produce comboboxes) to filter OData on the server side. like /products?$filter=categoryid eq [variable value]

Is it possible now and if so how do I do it?

Re: OData and dynamic filters

Posted: Mon Nov 09, 2020 8:59 pm
by Lech Kulikowski
Hello,

Please try to use the variable in the connection string.

Thank you.