Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Editor and bServerSide, Concat and Join questions

$
0
0
First of all, I 've to say that Datatables + Editor has saved me countless hours of work which I spend reading books or watching interesting movies.
Now to the point:
I was tearing my hair out because I could not find a way to make Editor with bServerSide:true enabled.

And it was a very simple thing:
->process( $_POST )

for :
->process( $_REQUEST )

Since the request is sent by GET when changing order of the columns for example.

One thing I still didn't figured out dear Allan, is a way to make the sort in the server side, and I'm aware of the logic that it should be done either in the client or server side. But as I'm working with thousands of rows of big data, it would be a pleasure to do it on the server.

Another thing I yet didn't figured out, is if there is a way to CONCAT ( day,' ',hour) for example in the editor class (Currently I do it on the client) and also didn't figured out this little thing:

Editor::inst( $db, 'co_acc_logs' )
->pkey('lid')
->fields(
Field::inst( 'lid' ),
Field::inst( 'uid' ),
Field::inst( 'day' ),
Field::inst( 'hour' )
)
->join(
Join::inst( 'co_users', 'object' )
->join( 'uid', 'uid' )
->field(
Field::inst( 'email' )
)
)

Returns co_users.email as a Json object. But how I can do if I want to have this column in the natural fields (Instead of uid I would like to show their email for example )

Anyways, even if I don't know how to use it completely, so far in the latest 2 years has been a great tool! So thank you very much for creating it

Viewing all articles
Browse latest Browse all 82115

Trending Articles