This is a migrated thread and some comments may be shown as answers.

convert Json filter expression to sql expression

1 Answer 245 Views
Grid
This is a migrated thread and some comments may be shown as answers.
alooosh
Top achievements
Rank 1
alooosh asked on 29 Dec 2015, 03:22 PM

Hi experts , I am using server side filter on my grid . I am not using JSP wrappers it is just  normal kendo grid connected to servlet where to obtain data. I am giving the user to filter any coulmns as he wishes on my grid. what I am looking for is I need to translate the JSon filter made by the user to sql expression so I can use it to retreive data from the database. my Json filter representation is as below 

{"logic":"and","filters":[{"field":"name","operator":"startswith","value":"ji"},{"field":"name","operator":"contains","value":"m"},{"field":"price","operator":"eq","value":"55"}]}

it is too much difficlut for me to translate it to sql expression . I have searched a lot , all I found on ASP not the JSP 

 

please help me at least with the method/function to convert the json correctly as it is made by user on grid.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 04 Jan 2016, 03:16 PM
Hi Alooosh,

Currently we have no such demo of translating filter object to SQL query which we can provide. As such custom solutions falls outside the scope of our support service I could only suggest to check our premium services

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
alooosh
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or