Table of Contents

Method GetKeysForIndex

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

GetKeysForIndex(SLProtocol, int, string)

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

[Obsolete("Use protocol.GetKeysForIndex instead", false)]
public static string[] GetKeysForIndex(SLProtocol protocol, int columnPid, string value)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

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’.
  • This method acts as a wrapper for a NotifyProtocol type 196 call NT_GET_KEYS_FOR_INDEX.
  • From DataMiner 9.0.0 [CU14] (Main Release) and DataMiner 9.0.5 [CU1] (Feature Release) (RN 15333) onwards, this call does no longer perform a case sensitive lookup. In case a case-sensitive lookup is required, use the NT_GET_KEYS_FOR_INDEX_CASED notify type (411).