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

How to use Restful API when the datatable expects more data than was sent in with the create?

$
0
0

The restful api example works great, however, I have two differences in with my returned data compared to what i'm POSTing to the server.

1) I'm posting a dropdown language.id value to the server but my datatable needs to display the name

2) I am not posting a GUID, but am receiving a GUID back from the server in the POST results (my datatable wants to display this value)

I am getting this error: DataTables warning: table id=track_table_19 - Requested unknown parameter 'language.name' for row 11. For more information about this error, please see http://datatables.net/tn/4

Basically I want the datatable to be updated with the results of the restful POST rather than using the values that I fill out in the editor form. I did serverSide:true and my POST worked perfectly. However, then the search, sort, pagination all stopped working as datatables was expecting the server to handle it (which I don't want to do).

Thanks.


Viewing all articles
Browse latest Browse all 82286

Trending Articles