Hi,
We had an odd problem in our app when making data synchronization via updateCaches calls. While updating some not-related DataSource records some of our forms did not-needed redraws which cause problems with some of our custom widgets.
We noticed an oddity in DataBoundComponent code:
It seems that dsResponse and dsRequest parameters are in wrong order in observe method. As we did our data synchronization with updateCaches(dsResponse) - without providing the dsRequest - the code in place failed to match the primary key values and thus, invoked setValues for all forms bound to this DS.
We fixed the problem in our code by calling updateCaches(dsResponse, dsRequest) variant but as we found it to be a quite low-level bug (if it is a bug?), we saw it necessary to report it to you.
Using v13.0p_2022-08-27/LGPL Development Only (built 2022-08-27).
We had an odd problem in our app when making data synchronization via updateCaches calls. While updating some not-related DataSource records some of our forms did not-needed redraws which cause problems with some of our custom widgets.
We noticed an oddity in DataBoundComponent code:
Code:
... // internal observation of ds.dataChanged, which is used to provide cache // sync for DBCs with a DS but no RS this.observe(ds, "dataChanged", "observer.dbcDataSourceDataChanged(observed,dsRequest,dsResponse)"); ... dbcDataSourceDataChanged : function (dataSource, dsResponse, dsRequest) { ... }
We fixed the problem in our code by calling updateCaches(dsResponse, dsRequest) variant but as we found it to be a quite low-level bug (if it is a bug?), we saw it necessary to report it to you.
Using v13.0p_2022-08-27/LGPL Development Only (built 2022-08-27).
Comment