SmartClient Version: v9.1p_2014-07-06/Pro Deployment (built 2014-07-06)
FF 24.6.0 ESR
We have a ListGrid bound to datasource "baseDs".
We have several datasources that "inheritsFrom" from datasource "baseDs".
When a user clicks on a particular record in the ListGrid bound to the "baseDs" datasource, we fetch the extended record and display it in a form, specifically, the record for the datasource that extends the "baseDs" (let's call it "extendedDs").
We want the ListGrid, which is bound to the "baseDs" to be updated so that it is not out of sync with the form bound to the "extendedDs", so we update the cache for both the "baseDs" and the "extendedDs" using the fetched "extendedDs" record.
Occationally, calling baseDs.updateCaches(cacheResponse); results in the warning "WARN:Log:findByKeys: passed record does not have a value for key field 'ourPrimaryKey'".
The record does indeed include the key field and this only seems to happen if we have two ListGrids bound to "baseDs" open at the same time.
Could you provide some guidance on what could be producing such warnings?
Thanks
FF 24.6.0 ESR
We have a ListGrid bound to datasource "baseDs".
We have several datasources that "inheritsFrom" from datasource "baseDs".
When a user clicks on a particular record in the ListGrid bound to the "baseDs" datasource, we fetch the extended record and display it in a form, specifically, the record for the datasource that extends the "baseDs" (let's call it "extendedDs").
We want the ListGrid, which is bound to the "baseDs" to be updated so that it is not out of sync with the form bound to the "extendedDs", so we update the cache for both the "baseDs" and the "extendedDs" using the fetched "extendedDs" record.
Code:
DSResponse cacheResponse = new DSResponse(); cacheResponse.setData(record); cacheResponse.setOperationType(DSOperationType.UPDATE); baseDs.updateCaches(cacheResponse); DSResponse cacheResponse = new DSResponse(); cacheResponse.setData(record); cacheResponse.setOperationType(DSOperationType.UPDATE); extendedDs.updateCaches(cacheResponse);
The record does indeed include the key field and this only seems to happen if we have two ListGrids bound to "baseDs" open at the same time.
Could you provide some guidance on what could be producing such warnings?
Thanks
Comment