Json data help.
Json data help.
![felipenova](https://secure.gravatar.com/avatar/59c55dfe9ea31a991fa7502c963c789d/?default=https%3A%2F%2Fvanillicon.com%2F59c55dfe9ea31a991fa7502c963c789d_200.png&rating=g&size=120)
Hi,
I have a JSON generate by RestEasy in this format:
[code]{"aaData":{"tipo":"Tipo1","descResumida":"DescRes1","descDetalhada":"DescDet1"}}[/code]
And my js is there:
[code]$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost:8080/teste_interface/rest/resource/hello",
"fnServerData": function( sUrl, aoData, fnCallback,oSettings ) {
oSettings.jqXHR = $.ajax({
'dataType': 'json',
'type': 'POST',
'url': sUrl,
'data': aoData,
'success': fnCallback
});
}
} );[/code]
And is showing "No matching records found".
Please, i need a help.
Thanks.
I have a JSON generate by RestEasy in this format:
[code]{"aaData":{"tipo":"Tipo1","descResumida":"DescRes1","descDetalhada":"DescDet1"}}[/code]
And my js is there:
[code]$('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://localhost:8080/teste_interface/rest/resource/hello",
"fnServerData": function( sUrl, aoData, fnCallback,oSettings ) {
oSettings.jqXHR = $.ajax({
'dataType': 'json',
'type': 'POST',
'url': sUrl,
'data': aoData,
'success': fnCallback
});
}
} );[/code]
And is showing "No matching records found".
Please, i need a help.
Thanks.
This discussion has been closed.
Replies
Post a link to a test case please.
Allan
And my js:
[code]'sAjaxSource': 'http://localhost:8080/teste_interface/rest/resource/hello',
'sAjaxDataProp': 'aaData'[/code]
Thanks