Table of Contents

Method GetParameterDisplay

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetParameterDisplay(int)

Gets the display value of the specified standalone parameter.

public virtual string GetParameterDisplay(int pid)

Parameters

pid int

The ID of the standalone parameter.

Returns

string

The display value of the specified standalone parameter.

Examples

Element element = engine.FindElement(400, 2000);
var displayValue = element.GetParameterDisplay(40);

Remarks

Useful for discrete parameters.

Exceptions

DataMinerException

The specified parameter was not found.
-or-
The specified parameter is incorrect.

GetParameterDisplay(string)

Gets the display value of the specified standalone parameter.

public virtual string GetParameterDisplay(string name)

Parameters

name string

The name of the standalone parameter.

Returns

string

The display value of the specified standalone parameter.

Examples

Element element = engine.FindElement(400, 2000);
var displayValue = element.GetParameterDisplay("MyParam");

Remarks

The specified value for the name argument should be the value of the Description tag of the parameter and not the value of the Name tag.

Useful for discrete parameters.

Exceptions

DataMinerException

The specified parameter was not found.
-or-
The specified parameter is incorrect.

GetParameterDisplay(string, string)

Gets the display value of the specified table cell.

public virtual string GetParameterDisplay(string name, string idx)

Parameters

name string

The name of the column parameter.

idx string

The primary key or display key.

Returns

string

The display value of the specified table cell or "Not Initialized" if the specified row was not found.

Examples

Element element = engine.FindElement(400, 2000);
var displayValue = element.GetParameterDisplay("MyColumn", "1");

Remarks

The specified value for the name argument should be the value of the Description tag of the parameter and not the value of the Name tag.

Useful for discrete parameters.

Exceptions

DataMinerException

The specified parameter was not found.
-or-
The specified parameter is incorrect.

GetParameterDisplay(int, string)

Gets the display value of the specified table cell.

public virtual string GetParameterDisplay(int pid, string idx)

Parameters

pid int

The ID of the column parameter.

idx string

The primary key or display key.

Returns

string

The display value of the specified table cell or "Not Initialized" if the specified row was not found.

Examples

Element element = engine.FindElement(400, 2000);
var displayValue = element.GetParameterDisplay(1004, "1");

Remarks

Useful for discrete parameters.

Exceptions

DataMinerException

The specified parameter was not found.
-or-
The specified parameter is incorrect.