Table of Contents

Method SetCell

Namespace
Skyline.DataMiner.Utils.Protocol.Extension
Assembly
Skyline.DataMiner.Utils.Protocol.Extension.dll

SetCell(SLProtocol, int, string, int, object, DateTime?)

Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value. Use null as value to clear the cell. The tablePid can be retrieved with the static Parameter class. The columnIdx can be retrieved with the static Parameter.[table].Idx class.

public static bool SetCell(this SLProtocol protocol, int tablePid, string rowPK, int columnIdx, object value, DateTime? dateTime = null)

Parameters

protocol SLProtocol

Link with SLProtocol process.

tablePid int

The ID of the table parameter.

rowPK string

The primary key of the row.

columnIdx int

The 0-based column position.

value object

The new value. Use null to clear the cell.

dateTime DateTime?

The time stamp for the new values (in case of historySets).

Returns

bool

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

Remarks

The primary key can never be updated.

Exceptions

ArgumentNullException

rowPK is null.