CascadePanes, serverside - Panes not being rebuilt on selection
CascadePanes, serverside - Panes not being rebuilt on selection
I've just started implementing serverside processing, with an ajax/python server. I've taken my working client-side prototype, and included these elements in my table = $('#mytable').DataTable({...}) call:
serverMethod: 'POST',
'ajax': {
'url':'http://localhost:5000/ajaxfile',
},
and it everything worked as desired, including SearchPanes. For example, my initial ajax call (on a very noddy two rows of data) returns the searchPanes value:
{
"options": {
"Job Level": [
{
"count": 1,
"label": "3: Manager",
"total": 1,
"value": "3: Manager"
},
{
"count": 1,
"label": "5: Officer/Team Member",
"total": 1,
"value": "5: Officer/Team Member"
}
],
"Region": [
{
"count": 1,
"label": "East Midlands",
"total": 1,
"value": "East Midlands"
},
{
"count": 1,
"label": "Wales",
"total": 1,
"value": "Wales"
}
]
}
}
All has gone well until I try to implement cascade functionality. So I think I am successfully generating the correct output:
{
"options": {
"Job Level": [
{
"count": 1,
"label": "3: Manager",
"total": 1,
"value": "3: Manager"
},
{
"count": 0,
"label": "5: Officer/Team Member",
"total": 1,
"value": "5: Officer/Team Member"
}
],
"Region": [
{
"count": 1,
"label": "East Midlands",
"total": 1,
"value": "East Midlands"
},
{
"count": 0,
"label": "Wales",
"total": 1,
"value": "Wales"
}
]
}
}
although the selections work, the panes are not being rebuilt to show the updated values and counts.
I'm probably missing something in the documentation, but is there something I have to do client or server-side to trigger a refresh of the panes?
Thanks,
Rob
This question has an accepted answers - jump to answer
Answers
Hi Rob,
Are you able to give me a link to your page so I can trace it through please?
Allan
I've moved to Editor, and don't have this issue any more.
Many thanks.