OData and dynamic filters

Stimulsoft Reports.JS discussion
Post Reply
s.wieczorek
Posts: 19
Joined: Fri Sep 22, 2017 5:06 am

OData and dynamic filters

Post 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>'
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: OData and dynamic filters

Post by Alex K. »

Hello,

You can add necessary filtering for the DataBand component.

Thank you.
s.wieczorek
Posts: 19
Joined: Fri Sep 22, 2017 5:06 am

Re: OData and dynamic filters

Post by s.wieczorek »

But will this send filters to OData server or will it filter data on the clients side?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: OData and dynamic filters

Post 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
s.wieczorek
Posts: 19
Joined: Fri Sep 22, 2017 5:06 am

Re: OData and dynamic filters

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: OData and dynamic filters

Post by Alex K. »

Hello,

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

Thank you.
iandreev
Posts: 2
Joined: Fri Nov 06, 2020 3:03 pm

Re: OData and dynamic filters

Post 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?
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: OData and dynamic filters

Post by Lech Kulikowski »

Hello,

Please try to use the variable in the connection string.

Thank you.
Post Reply