I need to re-fetch the contents of a grid after an item has been added to the database. In this case there are specific selectors that are based on what is allowed in the folder. I couldn’t get these to work as dataSource based select Items, so I simply put the create widget in a pop up window for now (I’ll come back and fix this later, but I had to move on)
So my popup widget adds the item to the folder, makes the correct database entry, and then calls this function in the opener window
function refreshWorkSpace(){
var theLoc = document.forms[0].currentLocation.value;
itemsList.fetchData({itemlocation:theLoc});
}
The itemsList is there. No error is generated, and if I alert(itemsList.ID), the grids ID is alerted. So the object is there. However the fetch does not fire.
What do I need to do to get the grid to reload?
I tried the redraw() method.. it did nothing.
Thanks in advance.