[Lazarus] fcl-web or BrookFramework queryfields array
Leonardo M. Ramé
l.rame at griensu.com
Fri Apr 15 21:37:08 CEST 2016
El 15/04/16 a las 16:33, silvioprog escribió:
> On Fri, Apr 15, 2016 at 4:25 PM, Leonardo M. Ramé <l.rame at griensu.com
> <mailto:l.rame at griensu.com>> wrote:
> [...]
>
> It works pefectly por param=value&..., but I don't know how to parse
> array type values.
>
> example: ?filters[0]['filter']=name&filters[0]['value']=john
>
>
> This filter can be easily parser if you send it as:
>
> ?filters[0].filter=name&filters[0].value=john
>
> The parser can populate a class structure like:
>
> === code ===
>
> TYourObject = class
> published
> property filter: string ...;
> property value: string ...;
> end;
>
> TFilters = class(TFPGMapObject<TYourObject>)
> end;
>
> === /code ===
>
Sorry, nevermind. I've found a way to configure KendoUi Grid to send
queries as POST using JSON, so, problem solved.
More information about the Lazarus
mailing list