Row doesn't change after update

Row doesn't change after update

tiebreaktechtiebreaktech Posts: 20Questions: 3Answers: 1

Hello,

i have a problem that i cannot solce. After i update a row cell, its value remains the same and the row does not update at all.

the editor is declared as such:

editor = new $.fn.dataTable.Editor( {
table: "#events",
ajax: "/api/events",
legacyAjax: true,
formOptions: {
bubble: {
submit: 'all'
}
},
fields: [{
name: "time", type: "hidden"
},{
label: "<?=tr('Punti casa')?>", name: "hs", type: "score"
},{
label: "<?=tr('Punti trasferta')?>", name: "vs", type: "score"
},{
label: "<?=tr('Giocatore')?>", name: "player.value", type: "select", options: people
},{
label: "<?=tr('Squadra')?>", name: "disp_name.value", type: "select", options: teams
},{
label: "<?=tr('Fondamentale')?>", name: "skill.value", type: "select", options: skills
},{
label: "<?=tr('Valutazione')?>", name: "mark.value", type: "select", options: marks
},{
label: "<?=tr('Tipo')?>", name: "type.value", type: "select", options: type
},{
label: "<?=tr('Posizione')?>", name: "pos", type: "number"
},{
label: "<?=tr('Pos. palleggiatore')?>", name: "setter_pos", type: "number"
},{
label: "<?=tr('Pos. palleggiatore avv.')?>", name: "opp_setter_pos", type: "number"
}
]
});

the response json is:

{ "data":[
{"DT_RowId":"13641","hteam_id":"42","vteam_id":"38","time":"18:13:02","set_number":"4","player"
:{"label":"2-Schiacciatore","value":"457"},"player_id":"457","homescore":"0","visitorscore":"1","skill"
:{"label":"Difesa","value":"2"},"mark":{"label":"=","value":"6"},"type":{"label":"-","value":0},"pos"
:"6","setter_pos":"1","opp_setter_pos":"6","disp_name":{"label":"i Termosifoni","value":"42"},"team_id"
:"42","hs":"0","vs":"1"}]
}

editor version is v1.6.1

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Are you able to link to the page showing the issue please? The response JSON above looks good, so I'd really need to be able to debug the page to understand what is going wrong.

    Allan

  • tiebreaktechtiebreaktech Posts: 20Questions: 3Answers: 1
    edited January 2017

    now it seems to work, i really don't know why.

    maybe was the cache after i updated the js

This discussion has been closed.