Table of Contents

Method SetParameterIndex

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

SetParameterIndex(int, int, int, object, ValueType)

Sets the value of a cell in a table, identified by its 1-based row and column position, with the specified value.
Note that this method should not be used. Using SetParameterIndexByKey(int, string, int, object, ValueType) instead is highly recommended.

bool SetParameterIndex(int iID, int iX, int iY, object value, ValueType timeInfo)

Parameters

iID int

The ID of the table parameter.

iX int

The 1-based row position.

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.SetParameterIndex(1000, 5, 6, "MyValue", DateTime.Now);

Remarks

  • The primary key can never be updated.
  • In case multiple cells need to be set, it is preferred to use a single SetParametersIndex method call in order to reduce the inter-process communication between the SLScripting and SLProtocol processes.
  • 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.

SetParameterIndex(int, int, int, object)

Sets the value of a cell in a table, identified by its 1-based row and column position, with the specified value.
Note that this method should not be used. Using SetParameterIndexByKey(int, string, int, object) instead is highly recommended.

bool SetParameterIndex(int iID, int iX, int iY, object value)

Parameters

iID int

The ID of the table parameter.

iX int

The 1-based row position.

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.SetParameterIndex(1000, 5, 6, "MyValue");

Remarks

  • The primary key can never be updated.
  • In case multiple cells need to be set, it is preferred to use a single SetParametersIndex method call in order to reduce the inter-process communication between the SLScripting and SLProtocol processes.
  • This method acts as a wrapper for a NotifyProtocol type 121 NT_PUT_PARAMETER_INDEX call.