Table of Contents

Class FileSelector

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

Widget that can be used to upload files to the DMA.

public class FileSelector : InteractiveWidget
Inheritance
FileSelector
Inherited Members
Extension Methods

Constructors

FileSelector()

Initializes a new instance of the FileSelector class.

Properties

AllowMultipleFiles

Gets or sets a value indicating whether multiple files can be selected. Default value: false.

AllowedFileNameExtensions

Gets or sets the allowed file name extensions (i.e. '.txt', '.csv', ...).

IsRequired

Gets or sets a value indicating whether the script is allowed to continue without having a file uploaded. Default value: false.

MaxFileSizeInBytes

Gets or sets the maximum allowed file size. An error will be thrown when you try to add a file that is larger than the allowed file size.

PlaceHolder

Gets or sets the text that should be displayed as a placeholder.

Tooltip

Gets or sets the tooltip.

UploadedFilePaths

Gets the paths to the uploaded files if any have been uploaded.

ValidationState

Gets or sets the state indicating if a given input field was validated or not and if the validation was valid. This should be used by the client to add a visual marker on the input field.

ValidationText

Gets or sets the text that is shown if the validation state is invalid. This should be used by the client to add a visual marker on the input field.

Methods

CopyUploadedFiles(string)

Copies the uploaded files to the specified folder. If the folder does not exist, a new one will be created.

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.