Hi,
I have a QAction associated with a button in my protocol that generates a file for download. The QAction logs show the following:
<code>ManagedInterop|INF|-1|7|Checking debug package status... Attempt 2 ManagedInterop|INF|-1|7|Checking debug package status... Attempt 3 ManagedInterop|INF|-1|7|Checking debug package status... Attempt 4 ManagedInterop|INF|-1|7|Checking debug package status... Attempt 5 ManagedInterop|INF|-1|7|Checking debug package status... Attempt 6 ManagedInterop|INF|-1|7|Debug package is ready: /debugpackage/debugpackage_2025-05-29T03:31:57.509362Z.zip ManagedInterop|INF|-1|7|Debug package URL: http://172.28.20.201/debugpackage/debugpackage_2025-05-29T03:31:57.509362Z.zip </code>
How can I allow users to download the file directly from Cube after it's generated?
Is it possible for my QAction to open a web browser automatically with the generated URL (e.g., http://172.28.20.201/debugpackage/debugpackage_2025-05-29T03:31:57.509362Z.zip
)?
Thanks!
Hi Jose,
I am not aware of a way for the QAction to trigger a download start on a connected user.
Element logic and QAction code are executed on the server and not on the client side but a couple of options could be to
- Configure the QAction to store the generated file on the C:\Skyline DataMiner\Documents\... folder which any user with the correct permissions can access via the Documents module of DataMiner.
- Create an interactive automation script that utilizes the DownloadButton UIBlockType | DataMiner Docs, which should achieve your goal albeit with some added complexity.
Hope one of my suggestions could be of help