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 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


Regarding the element name, you can retrieve it from within a QAction with a call to protocol.ElementName (see: https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Scripting.SLProtocol.ElementName.html)
For the syncing with DataMiner you should be able to use the following snippet
public static void SyncAddFileToDms(this SLProtocol protocol, string filepath)
{
protocol.NotifyDataMiner((int)SLNetMessages.NotifyType.SendDmsFileChange, filepath, (int)SLNetMessages.NotifyType.FileAdd);
}