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
Hi Jose,
In case the url where your document is stored is already accessible from your client machines (so if you navigate to it directly in your browser), you can just fill in the full url in a parameter (so setting a parameter with value 'http://172.28.20.201/debugpackage/debugpackage_2025-05-29T03:31:57.509362Z.zip') and then this will be displayed in Cube as a link and the user can click the value to download it.
Hi Joao,
I modify my QAction and can store un documents of my element but in dataminer no refresh this new file added.
Maybe need register in dataminer?
and how can get path of this element I mean Element/Test how can get name of element ?
Thanks
Hi Joao,
You have example about option 1? maybe is possible download to Documents folder ?
Thanks
Jose