Table of Contents

Method GetKeysForIndex

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

GetKeysForIndex(int, string)

Gets the primary keys of all rows that have the specified value for the specified column.

string[] GetKeysForIndex(int columnPid, string value)

Parameters

columnPid int

The ID of the column parameter.

value string

The value to match.

Returns

string[]

The primary keys of the rows that have the specified value for the specified column.

Remarks

  • In order for this method to work, the column must either be a foreign key column or it must have the option 'indexColumn'.
  • Prior to DataMiner 10.1.1 (RN 27995), this method was defined as an SLProtocol extension method in the NotifyProtocol class.
  • This method acts as a wrapper for a NotifyProtocol type 196 NT_GET_KEYS_FOR_INDEX call.
  • This call does not perform a case-sensitive lookup. In case a case-sensitive lookup is required, use the NT_GET_KEYS_FOR_INDEX_CASED notify type (411).