Method GetParameterDisplayByPrimaryKey
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetParameterDisplayByPrimaryKey(string, string)
Gets the display value of the specified table cell using the column name and row primary key.
public virtual string GetParameterDisplayByPrimaryKey(string name, string primaryKey)
Parameters
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.GetParameterDisplayByPrimaryKey("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.
GetParameterDisplayByPrimaryKey(int, string)
Gets the display value of the specified table cell using the column name and row primary key.
public virtual string GetParameterDisplayByPrimaryKey(int pid, string primaryKey)
Parameters
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.GetParameterDisplayByPrimaryKey(1004, "1");
Remarks
Useful for discrete parameters.
Exceptions
- DataMinerException
The specified parameter was not found.
-or-
The specified parameter is incorrect.