Hallo,
we have a typical master / detail scenario, where we want to display projects on one view and the corresponding categories on a detail view. Until the latest version we manged to do this by using two different datasources (one per view). The first datasource loads the data via transport.read from a JSON webservice. Each project allready contains all depending categories. Because of that we used the first datasource to populate the second one by getting the selected item via uid. This item contains a property with the corresponding categories. These categories are used as data for the second datasource. (transport.read) With the current version this method stopped working. We are getting a "object not found" error, when returning back from detail view and trying to set the currentSelectedItem within the viewmodel with another project. It seems, that the parent() method is now missing on the project dataitems within the first datasource.
Any ideas on how to do it right? Is it a bug within the new version, or is our approch not the way to do this kind of task?
DataSource1
>> Projects
DataSource2
>> Categories (Project.Categories)
Thanks,
Martin
we have a typical master / detail scenario, where we want to display projects on one view and the corresponding categories on a detail view. Until the latest version we manged to do this by using two different datasources (one per view). The first datasource loads the data via transport.read from a JSON webservice. Each project allready contains all depending categories. Because of that we used the first datasource to populate the second one by getting the selected item via uid. This item contains a property with the corresponding categories. These categories are used as data for the second datasource. (transport.read) With the current version this method stopped working. We are getting a "object not found" error, when returning back from detail view and trying to set the currentSelectedItem within the viewmodel with another project. It seems, that the parent() method is now missing on the project dataitems within the first datasource.
Any ideas on how to do it right? Is it a bug within the new version, or is our approch not the way to do this kind of task?
DataSource1
>> Projects
DataSource2
>> Categories (Project.Categories)
Thanks,
Martin