Input not valid
Input not valid
Hello,
I encounter a strange phenomenon.
When I do an Update by Datatable Editor inline so directly in the table it works well.
But when I select the line to be modified and I click on Update (the Modal appears) I modify my line and I click on the update button, I get an error message: Input not valid.
Console :
Requete :
action "edit"
data[row_17][r_i_d_a][id] "17"
data[row_17][r_i_d_a][perimetre] "3"
data[row_17][r_i_d_a][clients] "13"
data[row_17][r_i_d_a][activite] "1"
data[row_17][r_i_d_a][date_decision] "2019-02-22"
data[row_17][r_i_d_a][i_d_a] "A"
data[row_17][r_i_d_a][problemes] "DATAMATRIX+Traçabilité++produit,+POKA+YOKE+mélange+réf,+manquant+pièces"
data[row_17][r_i_d_a][criticite_rida] "1"
data[row_17][r_i_d_a][solutions] "Modification+des+MOP+"
data[row_17][r_i_d_a][date_deadline] "2019-03-31"
data[row_17][r_i_d_a][etat_avancement] "-505"
data[row_17][r_i_d_a][status] "5"
data[row_17][r_i_d_a][etat] "1"
data[row_17][r_i_d_a][users] "1"
data[row_17][r_i_d_a][commentaire] "Attente+retour."
data[row_17][r_i_d_a][date_realisation] ""
data[row_17][r_i_d_a][date_verification] ""
data[row_17][r_i_d_a][resultat] ""
Response :
fieldErrors [ {…} ]
0 Object { name: "r_i_d_a.id", status: "Input not valid" }
name "r_i_d_a.id"
status "Input not valid"
data []
View : {"fieldErrors":[{"name":"r_i_d_a.id","status":"Input not valid"}],"data":[]}
L'update not work !
But the same operation by InLine Editor :
Console :
Requete :
action=edit&data%5Brow_17%5D%5Br_i_d_a%5D%5Bcommentaire%5D=Attente+retour+Client.
Response :
data [ {…} ]
0 Object { DT_RowId: "row_17", r_i_d_a: {…}, perimetre_rida: {…}, … }
DT_RowId "row_17"
r_i_d_a Object { perimetre: "3", clients: "13", activite: "1", … }
perimetre "3"
clients "13"
activite "1"
date_decision "2019-02-22"
i_d_a "A"
problemes "DATAMATRIX Traçabilité produit, POKA YOKE mélange réf, manquant pièces"
criticite_rida "1"
solutions "Modification des MOP "
date_deadline "2019-03-31"
id "17"
etat_avancement "-505"
status "4"
etat "1"
users "1"
commentaire "Attente retour Client."
date_realisation null
date_verification null
resultat ""
perimetre_rida Object { nom_perimetre: "Reconditionnement" }
nom_perimetre "Reconditionnement"
client_rida Object { nom_client: "XXX" }
nom_client "XXX"
activite_rida Object { nom_activite: "Automotive" }
nom_activite "Automotive"
tech_compteur_modif_deadline Object { compteur: null }
compteur null
status Object { nom_status: "Suspendu" }
nom_status "Suspendu"
images Object { nom_images: "OK" }
nom_images "OK"
users_rida_egale_un Object { trigramme_users_rida: "OGR" }
trigramme_users_rida "OGR"
L'update work perfectly!
Do you have an idea please?
Thanking you.
Replies
What validation are you using at the server-side for that field?
Allan
Hello Allan,
Here is the server-side file :
Thank you - so I can see you are using:
Given that it is marked as
set(false)
the validator shouldn't be running at all. Can you confirm for me that you don't actually want to set that value? If so, remove the validator.Regards,
Allan