Refresh view if given file has changed
Hi, that's more of a question rather than an issue.
Looking at your code example, is it possible to listen to changes for 'data/Health Clinics in Chicago.csv' and refresh the view? The CSV I am using changes every 5min and I would like to keep the list view updated by adding a listener or hopefully setting some attribute/parameter/configuration. Thanks
Hi, that's more of a question rather than an issue.
Looking at your code example, is it possible to listen to changes for 'data/Health Clinics in Chicago.csv' and refresh the view? The CSV I am using changes every 5min and I would like to keep the list view updated by adding a listener or hopefully setting some attribute/parameter/configuration. Thanks
Hi Did you find a solution on this?, have the same issue
Anyone to help with this? This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page. Thanks!
Anyone to help with this? This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page. Thanks!
Oh, I just searched this and found some hints! It seems like the problem is caused by caches in your browser. When you close the browser and reopen, or if you open the page in a new browser, then the new entry in the CSV file shows.
Anyone to help with this? This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page. Thanks!
It seems like this is an issue related to Chrome. It refreshes fine for me when I use firefox and manually refresh the page. With google chrome the table doesn't update even after hitting refresh.
Oh, I just searched this and found some hints! It seems like the problem is caused by caches in your browser. When you close the browser and reopen, or if you open the page in a new browser, then the new entry in the CSV file shows.
I circumvented the caching with adding random string to the csv link. Change:
csv_path: "data/Health Clinics in Chicago.csv",
to
csv_path: "data/Health Clinics in Chicago.csv?rndstr=<%= getRandomStr() %",