I want to add a record client-side after a fetch from the server has been performed. Is this possible? Thus the grids needs to show an extra record that is not fetched from the server. In SmartClient 12.0p.
Announcement
Collapse
No announcement yet.
X
-
Yes. There are a lot of ways to do this, but the best approach depends on whether you need to be able to use data paging and whether/how the extra record is reconciled with respect to the server's data model that lacks that record.
DataSource.updateCaches() lets you add records - see also ResultSet.updatePartialCache.
You can also add extra data via DataSource.transformResponse().
Comment