Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

UpdateCaches & Filter Editor

$
0
0
SmartClient Version: v9.1p_2015-01-02/PowerEdition Deployment (built 2015-01-02)

WB: FireFox

Hi,
I'm using a SQLDataSource to fetch data to a ListGrid. Some record data is beeing updated via services and I want to update the loaded data in the List grid only localy. The fallowing code is used.

Code:

DSResponse dsResponse = new DSResponse();
                dsResponse.setData(messageRecord);
            dsResponse.setOperationType(DSOperationType.UPDATE);
          // dsResponse.setInvalidateCache(true);
            getMassReviewPlugPresenter().getView().getMessageGrid().getDataSource().updateCaches(dsResponse);

The update works fine, but when using a filter editor. The filter state is not updated. What I mean is that the updated records should be filtered, because they not longer meet the criteria.
When I invalidate the cache, all data is fetch once again without taking any of the filter editor data into consideration. The same thing goes for the FilterBuilder.

I would like to run the updated data once again trough the filter without a server fetch. So basically only local. The same it works when you use simple DataSource.update with call.

Viewing all articles
Browse latest Browse all 4756

Trending Articles