Table of Contents

Method GetDisplayValue

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

GetDisplayValue(string, string)

Gets the display value that corresponds with the specified raw value of the specified parameter.

public virtual string GetDisplayValue(string name, string rawValue)

Parameters

name string

The name of the parameter.

rawValue string

The raw value for which the display value has to be determined.

Returns

string

The display value that corresponds with the specified raw value.
In case the parameter was not found, the specified value in rawValue is returned.
In case the parameter was found, but the raw value is not specified in the parameter, the specified value in rawValue is returned.

Examples

Element element = engine.FindElement(400, 2000);
string displayValue = element.GetDisplayValue("MyDiscreteParameter", "1");

Remarks

Used with parameters defining discrete entries to retrieve the display value (e.g. "Main") for a specific value (e.g. “1”).

GetDisplayValue(int, string)

Gets the display value that corresponds with the specified raw value of the specified parameter.

public virtual string GetDisplayValue(int pid, string rawValue)

Parameters

pid int

The ID of the parameter.

rawValue string

The raw value for which the display value has to be determined.

Returns

string

The display value that corresponds with the specified raw value.
In case the parameter was not found, the specified value in rawValue is returned.
In case the parameter was found, but the raw value is not specified in the parameter, the specified value in rawValue is returned.

Examples

Element element = engine.FindElement(400, 2000);
string displayValue = element.GetDisplayValue(1000, "1");

Remarks

Used with parameters defining discrete entries to retrieve the display value (e.g. "Main") for a specific value (e.g. “1”).