Animation + Reload of a datatable

Hi.

I have a case where I’m switching from a datable to a detail screen using an animation… When I go back to the datatable, I can’t display data again. Here is a snippet with my problem :
http://webix.com/snippet/f60c4e99

Click on view, then on table… The second load fire by the button click doesn’t display (but no error logged). Why?

Note that keeping the first generated datable in cache could not be a solution, I must reload data according to different parameters. I write a simpler snippet to discuss about how to do it right.

Thanks for your help.

Jonathan

I’m still looking on it, it’s not related to the animation itselfs, more to the fact that the datatable is replaced by an other view, then called again. On the following snippet, you can see that the data are loaded by the datatable but not displayed:
http://webix.com/snippet/bc6bbe6d
Am I making a wrong use of the framework to switch between views?

The reconstruction of the views is not recommended in such case. The best way is to use the ui.multiview and load the needed data via

$$('myTable').clearAll();          
$$('myTable').load( . . . );

Please check the multiview API and the following snippet:

http://webix.com/snippet/cc3d7657

OK I got it, I’ll use the multiview for that purpose. Thanks for your help.