Paulo Scardine escreveu:
Hi all,
I have a form with a grid on it. This grid has a dataset pointing to a
PHP script, lets call it grid_dataset. When the user clicks on the
edit and new buttons, there is a pop-up window with a second dataset I
use for updates/inserts, lets call it update_dataset.
The data is being inserted/edited ok on the database, but the
grid_dataset.doRequest() I fire just befor I hide the insert/edit
window seems to be finishing before update_dataset.doRequest(), and
the grid is not showing the updated/inserted values.
What should I do to ensure grid_dataset.doRequest() will fire after
update_dataset.doRequest()? Should I use other approach?
I solved this creating a "ondata" handler on update_dataset and firing
grid_dataset.doRequest() from this handler.
Thanks in advance,
--
Paulo