Table of Contents

Method AppendDropDown

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

AppendDropDown(string, params string[])

Adds a drop-down box to this dialog box.

public UIBuilder AppendDropDown(string destVar, params string[] options)

Parameters

destVar string

The name of the destination variable.

options string[]

The items in the drop-down list. The format of a drop-down entry must be as follows: value|displayValue

Returns

UIBuilder

This UIBuilder instance.

Examples

UIBuilder uibDialogBox = new UIBuilder();

uibDialogBox.AppendDropDown("selectionVar", "1|Automatic", "2|Semi-automatic", "3|Manual");

var uir = engine.ShowUI(uibDialogBox);
string result = uir.GetString("selectionVar");
engine.GenerateInformation("selectionVar: " + result);	// In case "Semi-automatic" was selected, selectionVar will contain "2".

Remarks

This is a convenience method that will create a new instance of UIBlockDefinition of type DropDown and sets RequireResponse to true.