Greetings!
I am developing a contact system using openlaszlo. So far I am able to view,remove and make updates except for adding. I am able to add successfully to the database though....The problem is that when I hit the add button the new entry is displayed on a separate window displaying all the data in the record but it will replace whatever item was currently selected. The result is the new entry is displayed but the old item is gone....
If anyone is familiar with openlaszlo since I just started out with the language....
Here is the block of code that will display the new entry on the grid gui and add the data to the database. Note: I am using jsp to connect to mysql database....
ToggleData.sendData("insert"); // this will call a class that connects to a jsp servlet
parent.datapath.updateData(); // this should update the grid
var dp=canvas.datasets.dset.getPointer(); //this retrievest the current item selected while browsing
dp.selectChild(); //this should select the node to append to
dp.addNodeFromPointer( this.datapath ); //this would add a new node to the dataset
this.setDatapath("new:/users"); //this should reflect that new node
ToggleData.hideEditText();
Everything else works fine except this problem....
Any help would be appreciated...
Thanks,
Loken