Hi,
I am developing a custom data source that extends BasicDataSource, and supports several data sources that are related by inheritance. For purposes of this discussion, assume that I have two data sources: Base and Derived, where Derived inherits from Base. In my application I have several data bound components displayed at one time, for example a TreeGrid displaying Base records, and a ListGrid displaying Derived records.
If I add/update/remove a Base record from the TreeGrid, what I would like is that the corresponding Derived record in the ListGrid is also added/updated/removed, and vice-versa. This happens automatically if the components are bound to the same data source, but does not seem to happen if they are different data sources related by inheritsFrom. I am able to accomplish this manually, either by using DSResponse.addRelatedUpdate() on the server (or DataSource.updateCaches()).
My question is: should this happen automatically? If so, then I am doing something wrong and will need to try to determine why it is not working for me. If not, then is my manual approach described above the best way to accomplish the desired result?
Thanks!
====
Version: v8.3p_2012-12-31/Pro Deployment (built 2012-12-31)
Browser: Firefox 17.0.5
I am developing a custom data source that extends BasicDataSource, and supports several data sources that are related by inheritance. For purposes of this discussion, assume that I have two data sources: Base and Derived, where Derived inherits from Base. In my application I have several data bound components displayed at one time, for example a TreeGrid displaying Base records, and a ListGrid displaying Derived records.
If I add/update/remove a Base record from the TreeGrid, what I would like is that the corresponding Derived record in the ListGrid is also added/updated/removed, and vice-versa. This happens automatically if the components are bound to the same data source, but does not seem to happen if they are different data sources related by inheritsFrom. I am able to accomplish this manually, either by using DSResponse.addRelatedUpdate() on the server (or DataSource.updateCaches()).
My question is: should this happen automatically? If so, then I am doing something wrong and will need to try to determine why it is not working for me. If not, then is my manual approach described above the best way to accomplish the desired result?
Thanks!
====
Version: v8.3p_2012-12-31/Pro Deployment (built 2012-12-31)
Browser: Firefox 17.0.5
Comment