The problem was my request SQL. For those who would like:
$SQL = “id, GROUP_CONCAT(cognitif.cognitif) AS cognitif FROM fiche
INNER JOIN cognitif ON FIND_IN_SET (cognitif.idcognitif, fiche.idcognitif) > 0″
.$where.” ORDER BY $sidx $sord LIMIT $start , $limit”;
$result = mysql_query( $SQL ) or die(“Couldn?t execute query.”.mysql_error());
Thank you again.
tony said:
Hello,
I'm not sure I understand rigth the problem, but when you use form edition only one row can be posted to the server instead that you have more selected one.
Only the delting rows support multiselect
Regards
Thanks Tony
In fact, I have an “edit form” with several fields one of which is “EditType: 'select'” with in “editoptions: multiple true”.
I get the values ​​with “dataURL 'ddlcognitif.php' in editoptions”.
All is well in the insert when I choose two values​​, for example: memory, application. My db server side inserts data in 1,2. Correct.
I wish that when I reopened my edit form I found in the box the items I had selected. But I see one of two or three, four … I had selected.
Now if I use the widget multiselect and it seems to work well but when I reopened my edit form I see my field empty only the text from – noneSelectedText: “Any”,
dataInit: function (elem) {
setTimeout(function () {
$(elem).multiselect({
minWidth: 100, //'auto',
height: “auto”,
selectedList: 6,
checkAllText: “all”,
uncheckAllText: “no”,
noneSelectedText: “Any”,
open: function () {
var $menu = $(“.ui-multiselect-menu:visible”);
$menu.width(“auto”);
return;
}
});
}, 50);
},
I guess I have to do the opposite, but I don't see how.
Another big thank you.
Sorry, it was a stupid question.
onSelectRow: function(ids) {
if(ids == null) {
ids=0;
if(jQuery(“#fileupload_grid”).jqGrid('getGridParam','records') >0 )
{
jQuery(“#fileupload_grid”).jqGrid('setGridParam',{url:”fileupload_grid.php?q=2&id=”+ids,page:1});
jQuery(“#fileupload_grid”).jqGrid('setCaption',”Fiche Projet ID: “+ids)
.trigger('reloadGrid');
}
} else {
jQuery(“#fileupload_grid”).jqGrid('setGridParam',{url:”fileupload_grid.php?q=2&id=”+ids,page:1});
jQuery(“#fileupload_grid”).jqGrid('setCaption',”UPLOAD DE FICHIERS – Fiche Projet ID: “+ids)
.trigger('reloadGrid');
}
if(ids == null) {
ids=0;
if(jQuery(“#datesup_grid”).jqGrid('getGridParam','records') >0 )
{
jQuery(“#datesup_grid”).jqGrid('setGridParam',{url:”datesup_grid.php?q=3&id=”+ids,page:1});
jQuery(“#datesup_grid”).jqGrid('setCaption',”Fiche Projet ID: “+ids)
.trigger('reloadGrid');
}
} else {
jQuery(“#datesup_grid”).jqGrid('setGridParam',{url:”datesup_grid.php?q=3&id=”+ids,page:1});
jQuery(“#datesup_grid”).jqGrid('setCaption',”DATES SUPPLEMENTAIRES – Fiche Projet ID: “+ids)
.trigger('reloadGrid');
}
},

well,
I tried to put in the parameter of Edit :
beforeShowForm: function(fordid) {
var mygriddetail = $('#list10_d');
var did = mygrid.jqGrid('getGridParam','selrow');
var celdid = mygrid.jqGrid('getCell', did, 'id');
if (did != null) {
jQuery(“#list10_d”).setGridParam({editurl:'addupdatedeldataFileUpload.php?q=2&id='+celdid});
}
else alert(“Vous n'avez s
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top