Hi
I am using a grid to insert several rows to a mysql table in the next mode:
I need to show a grid empty and add rows created for the user, and I am populated the original empty grid with the next file “vermovimientoXML.php”
<?php
header("Content-type: text/xml");
print '<?xml version="1.0" encoding="ISO-8859-1"?>';
print("<rows>");
print(" <row id='1'>");
print("<userdata name='valorfila'>1</userdata>");
print(" <cell></cell>");
print(' <cell></cell>');
print(' </row>');
print("</rows>");
?>
The problem is:
When I send all data using
myDataProcessor.sendData()
all new rows and his data (inserted for user) are saving well, but the only register that not save is the first (created with this xml file).
I can seethat the problem must bethe MODE of this row because the mode
$mode = $_GET[$rowId."_!nativeeditor_status"];
of this row is shown as “update”
this is shown using the debug option (dhtmlxdataprocessor_debug.js).
HOW CAN I DO SHOW A GRID WITH A ROW (ONLY ONE) AND WHEN MY USER SEND ALL IT ONCE (WITH THE NEW ONES , ADDED FOR HIM) ALL THE “MODES” OF THE ROWS BE: INSERTED ?
I hope that you can understand my problem
pd:THE USER ADDS THE OTHER ROWS (using the addRow function) the issue is only with the first (populated by xml)
TNKX