Hello,
I am working on an action app in studio web - enterprise.
I am using File Downloader control. Downloading the file from storage bucket on Page Load event. Then assigning output file to app variable to same type and assigning that variable to Source for the file downloader control.
Here, I don’t see the file available in the control. (have tried directly binding output of download activity but I think that’s not in scope in app UI design)
Am I doing anything incorrect or any workaround for this?
I have validated that the file gets downloaded and assigned to app variable correctly.
Hi @Rohit_More
As per my knowledge file downloader can’t show files assigned on page load. you should try to trigger the download source through a user action or bind it to a storage bucket file instead.
Happy Automation
Hi @prashant1603765 ,
thanks for the response.
Could you please elaborate more about the approach.
@Rohit_More
See the cause: file downloader does not refresh its source after initial render, so a file assigned during Page Load is not picked up by the control.
What is wrong: You assign the downloaded file to the variable in page Load, but the UI never rebinds the control, so the file downloader never sees the updated file.
so just try to reassign the IResource file after the page has rendered (rule, button click, or similar post‑render event) so the control rebinds and displays the file.
Studio Web - File Downloader
Happy automation
Hi @prashant1603765,
Thanks for explaining.
I did check with someone who did already worked on this control and found that, I was using variable type “File” but when I did use “AppsFile” then it’s working with my original approach that is in Load Page Event assign value to app variable of type AppsFile and bind it to File Downloader control.
Thanks