Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Michiel Runhardt
77
Views
2
Comments
refresh after file download
Question
Hi,
Is there anyone that can tell me how to automaticly refresh a page after i uploaded a file to a user?
Best Regards,
Michiel Runhardt
Lúcio Ferrão
Hi Michiel,
It is not possible to refresh a page when the user download finishes, only when the download starts. Still this is not trivial.
It requires you to use javascript on the destination screen to simulate a click when the new page is loaded in the browser. This final click is done on a link or button that effectivelly downloads the file you want.
Let me know if it works for you,
Lúcio Ferrão
Célia Corte
-you can create a java script action like this:
function downloadFileIntervinients(){
var el = document.querySelector(".BtDownloadFileClass");
el.click();
}
-in the ajax button, extended properties, add onclick = "downloadFileIntervinients();"
-create an invisible submit button to run the code to download file with the style "BtDownloadFileClass"
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...