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?
2024-06-12 10-07-10
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 GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.