I’ve this problem. I’m using this code to save a form:
Form.save();
Grid.clearAll();
Grid.load("php/connector/grid.php",CreateList(grid));
After the form saving the grid must be reloaded. After this i need to recreate an array in this way:
CreateList = function(grid)
{
var strId = grid.getAllRowIds(";");
MyArray = strId.split(";");
};
The trouble is that when CreateList is called the grid are not ready and grid.getAllRowIds(";") and return nothing.