Dynamic Page Data Refresh Hack

ATTENTION: THIS IS OUR OLD SITE. TO SEE OUR NEW WEBSITE, CLICK HERE.

Currently there is no proper way to automatically refresh dynamic fields on a page after the data is updated by the user. For example when a user updates their profile, the updated information does not display until the page is manually refreshed. This code presents a hack for refreshing dynamic fields after an update.
For dynamic item pages, re-filtering the dataset on the current item refreshes the data displayed on the page. The following code refreshes the #dbCustomer dataset on a customers profile page. This code could be inserted where ever necessary in the page code - in this example, it will refresh the data whenever the page loads (clearing out any cached data which may be out of date).
Lines Of Code
For dynamic repeaters, the same code can be used - but with the data filtered in the desired manner rather than by user. This example refreshes the #dbArticles dataset by an approval status. It also refreshes any dynamic fields on the repeater with updates e.g. number of article views.
Lines Of Code
Lines Of Code
Lines Of Code
Lines Of Code
Please login or sign-up (it's free!) to view our code. Refresh the page if already logged in.
Disclaimer: To the best of our knowledge, this code works for its stipulated purpose. If you find an error in our code, or know of a better way to achieve the same result - please contact us! We will help where we can, however please be aware that the code is provided 'as is' and without a promise of support in using or implementing it.