U
U
UngVas2014-04-04 15:11:40
ExtJS/Sencha
UngVas, 2014-04-04 15:11:40

Get request to a .Net Web Api method with an (to me) incomprehensible parameter - what type of variable to use?

Kind.
The query parameters are as follows:
d1:04.04.2014
d2:04.04.2014
filter[0][field]:tp
filter[0][data][type]:string
filter[0][data][value]:tcac
page:1
start:0
limit:50
sort:[{"property":"data","direction":"DESC"}]
The method looks like this:
[HttpGet]
public dynamic DeficitByInterval(string d1, string d2,int start, int limit, int page)
{}
I can catch all parameters except "filter" parameter because I don't know what type should be used on the server.
PS This option is for server side filtering of ExtJs tables.
What type of variable should I use? string[ , , ] ?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UngVas, 2014-04-07
@UngVas

The solution is unrealistically simple: in the filter settings you need to set encode: true and the parameters turn into Json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question