shaferam Posted December 14, 2017 Report Share Posted December 14, 2017 I have a webpage with both a submission form and a report. Upon submission of a form, I would like the report to automatically refresh. Does anyone have script to refresh the entire page upon submission of a form? Quote Link to comment Share on other sites More sharing options...
Mathilda Posted December 15, 2017 Report Share Posted December 15, 2017 10 hours ago, shaferam said: I have a webpage with both a submission form and a report. Upon submission of a form, I would like the report to automatically refresh. Does anyone have script to refresh the entire page upon submission of a form? Hi, you may try specifying an URL where both datapages are deployed on the Destination and triggers screen of the submission form (select go to a new webpage option) Also you may insert a record directly on a report using inline insert feature. You may find more details here Quote Link to comment Share on other sites More sharing options...
DefinitelyNot31337 Posted August 22, 2018 Report Share Posted August 22, 2018 Hello @shaferam, I believe the same functionality is now available as a standard feature as of Caspio 13.0. It's called AJAX Loading. Cool stuff. Links here: https://howto.caspio.com/datapages/ajax-loading/ Hope this helps. Regards, DN31337 Quote Link to comment Share on other sites More sharing options...
astroboy Posted September 25, 2021 Report Share Posted September 25, 2021 Hello there, if it helps, you may check this HowTo documentation about auto refreshing a page: https://howto.caspio.com/faq/reports-datapages/how-to-auto-refresh-a-page/ Quote Link to comment Share on other sites More sharing options...
Kurumi Posted March 8, 2022 Report Share Posted March 8, 2022 Hi - Just wanted to share this solution. You can use this if you have a Tabular Report with Inline Edit and upon update, you want to reload the whole page. Insert it in the Footer of the DataPage. <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { document.addEventListener("change", function(event){ var edit= document.querySelector('[name="Mod0InlineEdit"]'); edit.addEventListener("click", function(){ window.parent.location = document.referrer; }); }); }); </script> Quote Link to comment Share on other sites More sharing options...
Kurumi Posted September 29, 2023 Report Share Posted September 29, 2023 Hello - I found this solution that might also work in Inline Add: Quote Link to comment Share on other sites More sharing options...
cheonsa Posted September 13 Report Share Posted September 13 Hi all, Just wanted to share with you another solution that works to automatically update the report upon submitting a new record. Instead of deploying the two DataPages in one webpage, you can deploy the Report in the Footer of the Submission Form via iFrame. With this, the page will automatically reload upon submission. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.