Table of Contents

Property InitialValue

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

InitialValue

Gets or sets the value that will be assigned to the dialog box item the moment the dialog box opens.

public string InitialValue { get; set; }

Property Value

string

The value that will be assigned to the dialog box item the moment the dialog box opens.

Examples

UIBlockDefinition blockCalendar = new UIBlockDefinition();
blockCalendar.Type = UIBlockType.Calendar;
DateTime saveNow = DateTime.Now;
blockCalendar.InitialValue = saveNow.ToString("dd/MM/yyyy HH:mm:ss");

uib.AppendBlock(blockCalendar);

Remarks

For a dialog box item of type CheckBoxList, you can specify several values separated by semicolons.

For a dialog box item of type Numeric, the initial value has to be of format "DoubleValue;Boolean;SelectedDiscreetString". The DoubleValue contains the value of the numeric box. The Boolean ("true" or "false") determines whether the discreet checkbox is selected (true) or not (false). The SelectedDiscreetString selects the discreet with that exact name in case multiple discrete values are defined. If case you only want to visualize the numeric box, it is sufficient to only specify the DoubleValue (RN 6825).