Table of Contents

Method SetColumn

Namespace
Skyline.DataMiner.Scripting
Assembly
QActionHelperBaseClasses.dll

SetColumn(int, string[], object[], DateTime?)

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

public object SetColumn(int columnPid, string[] Keys, object[] Values, DateTime? timeInfo = null)

Parameters

columnPid int

The ID of the column parameter.

Keys string[]

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

Exceptions

ArgumentException

The length of "Keys" is not equal to the length of "Values".

SetColumn(int, string[], object[], DateTime?, bool)

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

public object SetColumn(int columnPid, string[] keys, object[] values, DateTime? timeInfo, bool useClearAndLeave)

Parameters

columnPid int

The ID of the column parameter.

keys string[]

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

values object[]

The values to set.

timeInfo DateTime?

Timestamp.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

The length of "keys" is not equal to the length of "values".

SetColumn(int, string[], object[], bool)

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

public object SetColumn(int columnPid, string[] keys, object[] values, bool useClearAndLeave)

Parameters

columnPid int

The ID of the column parameter.

keys string[]

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

values object[]

The values to set.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

The length of "keys" is not equal to the length of "values".