Table of Contents

Method SetParameterIndexByKey

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

SetParameterIndexByKey(int, string, int, object, ValueType)

Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value.

bool SetParameterIndexByKey(int iID, string key, int iY, object value, ValueType timeInfo)

Parameters

iID int

The ID of the table parameter.

key string

The primary key of the row.

iY int

The 1-based column position.

value object

The value to set.

timeInfo ValueType

Timestamp.

Returns

bool

Whether the cell value has changed. true indicates change; otherwise, false.

Examples

bool hasSucceeded = protocol.SetParameterIndexByKey(1000, "Row 5", 6, "MyValue", DateTime.Now);

Remarks

  • The primary key can never be updated.
  • This method acts as a wrapper for a NotifyProtocol type 121 call NT_PUT_PARAMETER_INDEX.
  • From DataMiner 10.2.9 onwards (RN 33849), if the DateTime.Kind property of timeInfo is unspecified, the timestamp will be handled as local time.

SetParameterIndexByKey(int, string, int, object)

Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value.

bool SetParameterIndexByKey(int iID, string key, int iY, object value)

Parameters

iID int

The ID of the table parameter.

key string

The primary key of the row.

iY int

The 1-based column position.

value object

The value to set.

Returns

bool

Whether the cell value has changed. true indicates change; otherwise, false.

Examples

bool hasSucceeded = protocol.SetParameterIndexByKey(1000, "Row 5", 6, "MyValue");

Remarks

  • The primary key can never be updated.
  • This method acts as a wrapper for a NotifyProtocol type 121 call NT_PUT_PARAMETER_INDEX.