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
Filipe Lourenço
91
Views
1
Comments
Download a file and next redirect to a page
Question
I cannot redirect to a page when i did a file download;How to achieve that?
Daniel Martins
You can find attached an example OML.
This solution its based on the article : https://www.willmaster.com/blog/automation/one-link-download-and-redirect.php
Your requirement it's odd, so, what you get it's an odd solution.
Solution:
One Screen with a download button that redirects to the destination screen.
One Screen (DownloadFile.aspx) with the file download in the preparation.
RedirectedScreen has an meta tag <meta http-equiv="refresh" content="2; URL=DownloadFile.aspx"> Once the web page is completely loaded, it waits 2 seconds then initiates a file download.
I don't have sure that's the best solution but, it's what i achieved.
This way, you can redirect and then download a file.
I hope this will be helpful for you.
Application.oml
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...