Oh ok, I guess I understand the point (or a part of the point)
My object does not have the id, in fact if I print the object into the $init, I see that webix puts an internal ID.
Much more clever ...
this.win = this.ui(new FlightDetailsView(this.app,"win_name", item, this.getGrid().data))
from this topic: https://forum.webix.com/discussion/35557/how-to-pass-initialization-parameters-to-views-created-with-this-ui
Dunno if it's the coorect solution but...
I've created a function inside the window component: getData(collection)
In the main view (where is the datatable), I call the getdata after the onShow event of the window, sending the collection to the w…
Thanks for your reply @integral .
Ok this part is clear, and now I can call the "load" method after filling a form.
But how to work with model?
The only way to work with a model that returns a DataCollection, is the sync method.
But the onSyncA…
@Helga thank you helga.
But how can I send extra parameters to the "url" of the DataCollection?
I have a search form to filter a grid, after compiling the form, Iit should call a restws and then fill the grid.
I'm using a DataCollection object i…
ok that's because the init() function is called at the initialization of the MainView.
I should have referenced the subview in the ready() function.