Table of Contents

Class DownloadButton

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript.Components
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
public class DownloadButton : InteractiveWidget
Inheritance
DownloadButton
Inherited Members
Extension Methods

Constructors

DownloadButton()

Initializes a new instance of the DownloadButton class.

DownloadButton(string)

Initializes a new instance of the DownloadButton class.

Properties

DownloadedFileName

The filename that will be saved. By default this is the same as the filename of the file on the remote location, but it can be overriden. Note: overriding the filename is blocked by some browsers when the file to download is on another host (so not on the DataMiner agent). In this case the original filename will be used.

RemoteFilePath

Relative: path must start with either / or ./ or ../ "/Documents/MyElement/MyDocument.txt" will download the file hosted on URL http(s)://yourdma/Documents/MyElement/MyDocument.txt, which is the file located in C:\Skyline DataMiner\Documents\MyElement\MyDocument.txt". Absolute: link to a file that is public accessible on the web. "https://dataminer.services/install/DataMinerCube.exe" will download the latest Cube from DataMiner Services.

StartDownloadImmediately

If set to true (the default is false), the download will start immediately when the widget is displayed. The button stays visible and can be clicked to download the file again.

Style

Gets or sets the text style of the DownloadButton.

Text

Gets or sets the text displayed in the DownloadButton.

Methods

LoadResult(UIResults)

Load any changes made through user interaction.

RaiseResultEvents()

Raises zero or more events of the widget. This method is called after LoadResult(UIResults) was called on all widgets.

Events

DownloadStarted

Triggered when the file starts downloading in the browser.