[Laszlo-user] Asynchronous mess with datasets.
Paulo Scardine
paulo at scardine.com.br
Mon Jul 21 14:00:37 PDT 2008
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
More information about the Laszlo-user
mailing list