Table of Contents

Method GetInputParameter

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

GetInputParameter(int)

Retrieves the specified input parameter.

object GetInputParameter(int j)

Parameters

j int

The 0-based index denoting where the parameter is specified in the inputParameters attribute.

Returns

object

The value of the specified input parameter.

Examples

In the following example the parameter with ID 1000 is a table parameter.

<QAction id = "1000" name = "ProcessTable" encoding = "csharp" triggers = "10" inputParameters = "1000">

In the QAction, the input parameter can then be retrieved as follows:

using Skyline.DataMiner.Scripting;

public class QAction { public static void Run(SLProtocolExt protocol) { object[] table = (object[])protocol.GetInputParameter(0); object[] primaryKeyColumn = (object[])table[0]; ////… } }

Remarks

  • This method requires the inputParameters attribute to be used on the QAction that executes this method call.
  • The value of the parameter obtained via the GetInputParameter method will be the value of the parameter at the time the QAction started.
  • Prior to DataMiner 10.2.0 CU17, 10.3.0 CU5, and 10.3.8 (RN 36528), the table column array objects always have a reference. From these DataMiner versions onwards, the table column array objects will have a null reference when the table is empty, e.g. table[0] will be null when the table has no rows.