Here they talk about data structure and list seems possible :
https://datatables.net/manual/server-side#Example-data

Richard

On Fri, Jul 28, 2017 at 8:52 AM, Richard Vézina <ml.richard.vez...@gmail.com
> wrote:

> Hello Villas,
>
> The subject interrest me, as I use DTs, but not the server-side feature...
> But, I am not sure what you want to achieve... I gonna read a bit about DTs
> server-side, waiting for precision from you and maybe will understand
> better your question then...
>
> Richard
>
>
>
> On Thu, Jul 27, 2017 at 10:01 AM, villas <villa...@gmail.com> wrote:
>
>> Is there an simple way to parse this into an easier-to-work-with object.
>> I mean for example 'columns' could be a list.
>>
>> {'columns[0][data]': 'first_name',
>>  'columns[0][name]': '',
>>  'columns[0][orderable]': 'true',
>>  'columns[0][search][regex]': 'false',
>>  'columns[0][search][value]': '',
>>  'columns[0][searchable]': 'true',
>>  'columns[1][data]': 'last_name',
>>  'columns[1][name]': '',
>>  'columns[1][orderable]': 'true',
>>  'columns[1][search][regex]': 'false',
>>  'columns[1][search][value]': '',
>>  'columns[1][searchable]': 'true',
>>  'draw': '1',
>>  'length': '2',
>>  'order[0][column]': '0',
>>  'order[0][dir]': 'asc',
>>  'search[regex]': 'false',
>>  'search[value]': '',
>>  'start': '0'}
>>
>> BTW this is from a Datatables post request for creating server-side sql
>> queries.  Maybe someone has already figured this out.  I'm just trying to
>> save time in creating a web2py query.
>>
>> Many thanks.
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to