Got a Problem with sendData()

Hey guys, im new in dhtmlx and think its great but i got one problem with the sendData() Function.



I have two grids, i select some values from one an drag it to the other one and then editing it a bit.

After ive done all my edits i want mygrid3 to be saved in a text file (just at the moment while testing:) )

but i cant get it work. May its just a stupid typo or a big mistake of mine. here is my code:



html file:











    Drag and Drop between Grids

    

    

    

    

            

        

    











    



        



            

        

    


                




                


            




Speichern



















update.php:



<?php



session_start();

if(!isset($_SESSION[“id”]))

    $_SESSION[“id”] = microtime();

    



$fh = fopen(‘test.txt’, ‘w+’);

fwrite($fh, “muh”);

fwrite($fh, ‘$_GET[“Spielername”] $_GET[“Gelb”] $_GET[“pubdate”] $_SESSION[“id”]’);

    

    fclose($fh);



?>







Thx for helping guys

The problem caused by incorrect usage of
    myDataProcessor.enableDataNames(true);
This command will use column IDs as names for parameters ( not the header values ), but in your code there is no command, which assigns column IDs
    mygrid3.setHeader(flds);

    mygrid3.setColumnIds(flds);   // this row need to be added, to work with DataNames

problem is, that the update.php isnt triggered at all. nothing happens. dont know why. is the way i use the buttons the right one?


With you initialization , any operation in mygrid3 will be recorded by dataprocessor ( the new rows marked as bold, right ? )
But becuase you are set update mode to off - data sending must be triggered by manual call of



      myDataProcessor.sendData();



you are using



       myDataProcessor.dataprocessor.sendData



which is probably incorrect