Hi,
I load a grid, which is a sub set of a table filtered by an id, with:
if ($gridConn->is_select_mode()) {
$strSQL = "SELECT item, descrizione, um, qta, cu, stima_tot FROM offerte_attivita where id_offerta = ".$_GET['id'];
$gridConn->render_sql($strSQL,"","item,descrizione,um,qta,cu,stima_tot");
}
else {
$gridConn->render_table("offerte_attivita","id_attivita","item,descrizione,um,qta,cu,stima_tot");
}
At load it works, but when update a cell doesn’t work.
The log show:
====================================
Log started, 22/12/2010 11:12:19
====================================
DataProcessor object initialized
1293057792x0_gr_id => 1293057792x0
1293057792x0_c0 => 1
1293057792x0_c1 => asciugaturapppp
1293057792x0_c2 => h
1293057792x0_c3 => 2
1293057792x0_c4 => 3
1293057792x0_c5 => 0
1293057792x0_!nativeeditor_status => updated
ids => 1293057792x0
Row data [1293057792x0]
id_attivita => 1293057792x0
item => 1
descrizione => asciugaturapppp
um => h
qta => 2
cu => 3
stima_tot => 0
!nativeeditor_status => updated
UPDATE offerte_attivita SET item='1',descrizione='asciugatura',um='h',qta='2',cu='3',stima_tot='0' WHERE id_attivita='1293057792x0'
Edit operation finished
0 => action:updated; sid:1293057792x0; tid:1293057792x0;
Done in 0.025945901870728s
Note that id_attivita=‘1293057792x0’ that, instead, is = 1.
Any ideas?
Thanks you.