[Laszlo-user] Asynchronous mess with datasets.

Dave Miller dwmiller at umich.edu
Mon Jul 21 13:54:16 PDT 2008


Hi Paulo,

Can you use the ondata() handler from update_dataset to trigger the  
grid_dataset request?

Dave




On Jul 21, 2008, at 1:46 PM, Paulo Scardine wrote:

> 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?
>
> Thanks in advance,
> --
> Paulo



More information about the Laszlo-user mailing list