I’m trying to edit my grid through a popup form. The form looks like it is pulling the correct record from the grid, but it is not saving it. Here’s what I have:
[code] var popupWindow3e = dhxLayout.dhxWins.createWindow(“editTask”,50,50, 375, 467);
popupWindow3e.centerOnScreen();
popupWindow3e.setText(“Edit Task”);
popupWindow3e.button(“park”).hide();
popupWindow3e.button(“minmax1”).hide();
form3e = popupWindow3e.attachForm();
form3e.loadStruct("edit_tasks.php?q=" + grid3.getSelectedRowId(), "json", function() { form3e.setFocusOnFirstActive();});
form3e.bind(grid3);
form3e.attachEvent("onButtonClick", function(id){
if(id=="submit")
{
form3e.save();
popupWindow3e.hide();
}});
[/code]
But this gives an error:
When it loads the record grid3.getSelectedRowId() has the correct Id which should indicate a row is selected and has the Id we want. Do we need to call it again somewhere? Any help would be appreciated!