Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    What is the correct way of refreshing all components connected to a datasource?

    Hello,

    I want to make a "refresh all" button which will loop on all datasources and refresh its data, hopefully forcing all components to also update data.

    What i have tried is something like this:

    Code:
    myDataSource.fetchData(null, function(dsResponse) {
        myDataSource.updateCaches(dsResponse);
    });
    Is this the correct way of doing it?

    Unfortunately it's not working. I don't get any errors but listgrids connected to this datasource don't update.

    Thanks!
Working...
X