Set start time for refreshInterval

Discussion created by YLiAustin on Jun 10, 2014
Latest reply on Jun 13, 2014 by dpaddock-esristaff
Hello All,

My app's data updates every 15 minutes starting at top of the hour.  I want to set a start time for refreshInterval so whenever a map is loaded,  a start time is set.  For example, if map is loaded at 9:04 am  I want to set the map refresh starting time at 9:20 am (data will start to refresh at 9:15 am and it may take up to 5 minutes to finish calculation).  Then set the  refreshInterval to 15 minutes.  this way does not matter when user loads the map the map will be updated every 15 minutes with new data.  it is very important that user can view the latest data.

However I did not find any thing in map or layer object which allows me to set the start time.  At moment I do not know what to do except to write my own update function.  Please help.