Table of Contents

Method FillArrayWithColumn

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

FillArrayWithColumn(SLProtocol, int, int, object[], object[], DateTime?)

Sets the specified cells of a column with the provided values.

public static object FillArrayWithColumn(SLProtocol protocol, int tableId, int columnPid, object[] keys, object[] values, DateTime? timeInfo)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

tableId int

The ID of the table parameter.

columnPid int

The ID of the column parameter.

keys object[]

The primary keys of the rows for which the column has to be updated.

values object[]

The values to set.

timeInfo DateTime?

Timestamp

Returns

object

Remarks

  • This method acts as a wrapper for a NotifyProtocol type 220 call NT_FILL_ARRAY_WITH_COLUMN.
  • In case the values array only contains one value, this value will be used for all specified primary keys.
  • 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.

Exceptions

ArgumentException

The length of "keys" is not equal to the length of "values", and the length of the values array does not equal 1.

FillArrayWithColumn(SLProtocol, int, int, object[], object[])

Sets the specified cells of a column with the provided values.

public static object FillArrayWithColumn(SLProtocol protocol, int tableId, int columnPid, object[] keys, object[] values)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

tableId int

The ID of the table parameter.

columnPid int

The ID of the column parameter.

keys object[]

The primary keys of the rows for which the column has to be updated.

values object[]

The values to set.

Returns

object

Remarks

  • This method acts as a wrapper for a NotifyProtocol type 220 call NT_FILL_ARRAY_WITH_COLUMN.
  • In case the values array only contains one value, this value will be used for all specified primary keys.

Exceptions

ArgumentException

The length of "primaryKeys" is not equal to the length of "values", and the length of the values array does not equal 1.